debug: only show usb_charging_maxcurrent() if HAVE_USBSTACK is defined.

HAVE_USB_CHARGING_ENABLE isn't enough, as the ihp3xx targets have an odd
combination of USB charging but rely on an external ATA bridge.

Change-Id: I2cba5f218971ac23cde8dca34faa06bbb44a2448
This commit is contained in:
Solomon Peachy 2026-01-13 19:28:54 -05:00
parent 4850684149
commit 7518b8c309

View file

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