From 9f124c646ceacabf944494888d03e4ea7b7377ba Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 28 Jan 2022 16:31:34 +0800 Subject: [PATCH] more constants fixing --- 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 3dbb8e710..9d087f3c8 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -358,7 +358,7 @@ fn xmain() -> ! { // have to clear the entire rectangle area, because the SSID has a variable width and can be much wider or shorter than battstats gam.draw_rectangle(status_gid, stats_rect).ok(); - if stats.current == 0xdddd || stats.current == 0xffff + if stats.current == -8739 /* 0xdddd */ || stats.voltage == 0xdddd || stats.voltage == 0xffff || stats.soc == 0xdd || stats.soc == 0xff { write!(&mut battstats_tv, "{}", t!("stats.measuring", xous::LANG)).unwrap();