diff options
Diffstat (limited to 'common/battery.c')
-rw-r--r-- | common/battery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/battery.c b/common/battery.c index f92f538727..0aaeb3ef79 100644 --- a/common/battery.c +++ b/common/battery.c @@ -88,7 +88,8 @@ static int print_battery_info(void) if (check_print_error(battery_get_battery_mode(&value))) ccprintf("0x%04x\n", value); - unit = battery_is_in_10mw_mode() ? "0 mW" : " mAh"; + battery_is_in_10mw_mode(&value); + unit = value ? "0 mW" : " mAh"; print_item_name("Charge:"); if (check_print_error(battery_state_of_charge(&value))) |