add event management, small fix for CAM handler loop
This commit is contained in:
@ -32,3 +32,12 @@ impl Default for TimeStampHelper {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_time(time_provider: &mut CdsTime, timestamp: &mut [u8]) {
|
||||
time_provider
|
||||
.update_from_now()
|
||||
.expect("Could not get current time");
|
||||
time_provider
|
||||
.write_to_bytes(timestamp)
|
||||
.expect("Writing timestamp failed");
|
||||
}
|
||||
|
Reference in New Issue
Block a user