debug: only show usb_charging_maxcurrent() if HAVE_USBSTACK is defined.
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 7518b8c309d43f8eba998d52a835bd06fb0918e7 Author: Solomon Peachy <[email protected]> Date: Tue Jan 13 19:28:54 2026 -0500 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 diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 6b828d3e02..243babfb10 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -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 */ -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs