debug_menu: show USB charging current limit on battery screen

Change-Id: I5cbcdba5724616e85cde1cf9e422c8ccdb34592b
This commit is contained in:
Aidan MacDonald 2026-01-13 20:19:40 +00:00 committed by Solomon Peachy
parent 350e2b9b02
commit cd20bc7d16

View file

@ -1178,6 +1178,10 @@ static bool view_battery(void)
#else
lcd_putsf(0, 3, "Charger: %s",
charger_inserted() ? "present" : "absent");
#if defined(HAVE_USB_CHARGING_ENABLE)
lcd_putsf(0, 4, "USB current limit: %d mA",
usb_charging_maxcurrent());
#endif /* HAVE_USB_CHARGING_ENABLE */
#endif /* target type */
#endif /* CONFIG_CHARGING */
break;