mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
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:
parent
4850684149
commit
7518b8c309
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue