summaryrefslogtreecommitdiff
path: root/apps/main_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main_menu.c')
-rw-r--r--apps/main_menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index 09da2322ca..db70d0f70b 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -189,8 +189,11 @@ bool show_info(void)
189 snprintf(s, sizeof(s), str(LANG_BATTERY_TRICKLE_CHARGE)); 189 snprintf(s, sizeof(s), str(LANG_BATTERY_TRICKLE_CHARGE));
190 else 190 else
191#endif 191#endif
192 snprintf(s, sizeof(s), str(LANG_BATTERY_TIME), battery_level(), 192 if (battery_level() >= 0)
193 battery_time() / 60, battery_time() % 60); 193 snprintf(s, sizeof(s), str(LANG_BATTERY_TIME), battery_level(),
194 battery_time() / 60, battery_time() % 60);
195 else
196 strncpy(s, "(n/a)", sizeof(s));
194 lcd_puts(0, y++, s); 197 lcd_puts(0, y++, s);
195 } 198 }
196 199