summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index abcd32f814..e455127496 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -190,18 +190,6 @@ int battery_current(void)
190 int current = CURRENT_NORMAL; 190 int current = CURRENT_NORMAL;
191 191
192#ifndef BOOTLOADER 192#ifndef BOOTLOADER
193 if (usb_inserted()
194#ifdef HAVE_USB_POWER
195 #if (CURRENT_USB < CURRENT_NORMAL)
196 || usb_powered_only()
197 #else
198 && !usb_powered_only()
199 #endif
200#endif
201 ) {
202 current = CURRENT_USB;
203 }
204
205#if defined(HAVE_BACKLIGHT) && defined(CURRENT_BACKLIGHT) 193#if defined(HAVE_BACKLIGHT) && defined(CURRENT_BACKLIGHT)
206 if (backlight_get_current_timeout() == 0) /* LED always on */ 194 if (backlight_get_current_timeout() == 0) /* LED always on */
207 current += CURRENT_BACKLIGHT; 195 current += CURRENT_BACKLIGHT;