debug_menu: show USB charging current limit on battery screen

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit cd20bc7d16e729ea5eb0e768f1996b54e96d3fe3
Author: Aidan MacDonald <[email protected]>
Date:   Tue Jan 13 20:19:40 2026 +0000

    debug_menu: show USB charging current limit on battery screen
    
    Change-Id: I5cbcdba5724616e85cde1cf9e422c8ccdb34592b

diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 2e22397c67..6b828d3e02 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -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;
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.