From 4bb9e5f6e9dfe98e601bc56ce193f10e1f6e95c4 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 8 Aug 2023 20:30:38 +0800 Subject: [PATCH] format debug output on RTC to be hex so we can compare it directly to other debug outputs --- services/llio/src/api/rtc_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/llio/src/api/rtc_api.rs b/services/llio/src/api/rtc_api.rs index 09c09050e..5cabb4ab6 100644 --- a/services/llio/src/api/rtc_api.rs +++ b/services/llio/src/api/rtc_api.rs @@ -220,7 +220,7 @@ pub fn rtc_to_seconds(settings: &[u8]) -> Option { const YEARS: usize = 7; if ((settings[CTL3] & 0xE0) != crate::RTC_PWR_MODE) // power switchover setting should be initialized || (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; } // this is a secondary check -- I have seen RTC return nonsense time results before