From ee80bdb3eb8463a3e8f0a0a914246f3d70e23a79 Mon Sep 17 00:00:00 2001 From: Mitchell Marino Date: Fri, 22 Aug 2025 12:02:13 -0500 Subject: [PATCH] fix battery header issue --- main/drivers/power.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/drivers/power.cpp b/main/drivers/power.cpp index abfac17..72a5bd3 100644 --- a/main/drivers/power.cpp +++ b/main/drivers/power.cpp @@ -14,7 +14,7 @@ void bat_monitor_task(void* arg) { lcd_clear(); lcd_print(0, 1, str_buf); - int16_t current = lipo.current(current_measure::AVG); + int16_t current = lipo.current(); sprintf(str_buf, "%dmA", current); lcd_print(1, 1, str_buf); @@ -60,7 +60,7 @@ void lcd_print_header_bat() { if (lcd_starcode_displaying_result()) return; uint8_t soc = lipo.soc(); - uint8_t current = lipo.current(); + int16_t current = lipo.current(); char buf[6]; if (soc < 5 && current <= 0) { snprintf(buf, sizeof(buf), " LOW");