add event management, small fix for CAM handler loop

This commit is contained in:
2024-04-24 20:02:42 +02:00
parent 707843ec9f
commit dcaf67d6d0
11 changed files with 449 additions and 57 deletions

View File

@ -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");
}