summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/powermgmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index fdc77f680b..40640cd032 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -443,6 +443,7 @@ static int runcurrent(void)
current = CURRENT_USB;
}
+#ifndef BOOTLOADER
if ((backlight_get_timeout() == 1) /* LED always on */
#ifdef HAVE_CHARGE_CTRL
|| (charger_inserted() && backlight_get_on_when_charging())
@@ -450,6 +451,7 @@ static int runcurrent(void)
) {
current += CURRENT_BACKLIGHT;
}
+#endif
return(current);
}