From 65b5c0b00270520118372252f57f3e7d999ee662 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Tue, 2 Feb 2021 21:10:48 +0100 Subject: [PATCH] Info menu: Fixed battery percentage --- openrtx/src/ui/ui_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openrtx/src/ui/ui_menu.c b/openrtx/src/ui/ui_menu.c index 9a32386d..d06f969b 100644 --- a/openrtx/src/ui/ui_menu.c +++ b/openrtx/src/ui/ui_menu.c @@ -138,7 +138,7 @@ int _ui_getInfoValueName(char *buf, uint8_t max_len, uint8_t index) else if(strcmp(info_items[index], "Bat. Voltage") == 0) snprintf(buf, max_len, "%.1fV", last_state.v_bat); else if(strcmp(info_items[index], "Bat. Charge") == 0) - snprintf(buf, max_len, "%.1f%%", last_state.charge); + snprintf(buf, max_len, "%.1f%%", last_state.charge * 100); else if(strcmp(info_items[index], "RSSI") == 0) snprintf(buf, max_len, "%.1fdBm", last_state.rssi); return 0;