Add charging/discharging indication to battery debug menu if CONFIG_CHARGING >= CHARGING_MONITOR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26162 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b3a8170afe
commit
dd8e8a7d05
1 changed files with 5 additions and 1 deletions
|
@ -1534,8 +1534,12 @@ static bool view_battery(void)
|
|||
break;
|
||||
|
||||
case 1: /* status: */
|
||||
#if CONFIG_CHARGING >= CHARGING_MONITOR
|
||||
lcd_putsf(0, 0, "Pwr status: %s",
|
||||
charging_state() ? "charging" : "discharging");
|
||||
#else
|
||||
lcd_puts(0, 0, "Power status:");
|
||||
|
||||
#endif
|
||||
battery_read_info(&y, NULL);
|
||||
lcd_putsf(0, 1, "Battery: %d.%03d V", y / 1000, y % 1000);
|
||||
#ifdef ADC_EXT_POWER
|
||||
|
|
Loading…
Reference in a new issue