mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
format debug output on RTC to be hex so we can compare it directly to other debug outputs
This commit is contained in:
parent
162b87b9b0
commit
4bb9e5f6e9
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ pub fn rtc_to_seconds(settings: &[u8]) -> Option<u64> {
|
||||||
const YEARS: usize = 7;
|
const YEARS: usize = 7;
|
||||||
if ((settings[CTL3] & 0xE0) != crate::RTC_PWR_MODE) // power switchover setting should be initialized
|
if ((settings[CTL3] & 0xE0) != crate::RTC_PWR_MODE) // power switchover setting should be initialized
|
||||||
|| (settings[SECS] & 0x80 != 0) { // clock integrity should be guaranteed
|
|| (settings[SECS] & 0x80 != 0) { // clock integrity should be guaranteed
|
||||||
log::error!("RTC is in an uninitialized state!, {:?}", settings);
|
log::error!("RTC is in an uninitialized state!, {:x?}", settings);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
// this is a secondary check -- I have seen RTC return nonsense time results before
|
// this is a secondary check -- I have seen RTC return nonsense time results before
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue