diff options
-rw-r--r-- | common/battery.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/battery.c b/common/battery.c index 71b05ba40a..c143826802 100644 --- a/common/battery.c +++ b/common/battery.c @@ -203,7 +203,14 @@ static void print_battery_info(void) print_item_name("Cap-full:"); if (check_print_error(battery_full_charge_capacity(&value))) - ccprintf("%d mAh\n", value); + ccprintf("%d mAh (%d mAh with %d %% compensation)\n", + value, value*batt_full_factor/100, batt_full_factor); + +#ifdef CONFIG_CHARGER_V2 + print_item_name("Display:"); + value = charge_get_display_charge(); + ccprintf("%d.%d %%\n", value / 10, value % 10); +#endif print_item_name(" Design:"); if (check_print_error(battery_design_capacity(&value))) |