From de1f6f942da2a68bb8b4dadd2b34d1c1fec6c72c Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 28 Jan 2022 16:29:24 +0800 Subject: [PATCH] fix out of range consntant --- services/status/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/status/src/main.rs b/services/status/src/main.rs index 08453cd44..3dbb8e710 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -360,7 +360,7 @@ fn xmain() -> ! { if stats.current == 0xdddd || stats.current == 0xffff || stats.voltage == 0xdddd || stats.voltage == 0xffff - || stats.soc == 0xdddd || stats.soc == 0xffff { + || stats.soc == 0xdd || stats.soc == 0xff { write!(&mut battstats_tv, "{}", t!("stats.measuring", xous::LANG)).unwrap(); } else { // toggle between two views of the data every time we have a status update