summaryrefslogtreecommitdiffstats
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-24 17:42:07 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-24 17:42:07 +0000
commit9b8f56f35cfd67a1438ef7a6676319405b226d5d (patch)
tree143ffae22eb83e85a8adfc486983749ff24f1262 /firmware/powermgmt.c
parent24e2d8671d4c72bf2c8db4b27ad11906fef741c2 (diff)
downloadrockbox-9b8f56f35cfd67a1438ef7a6676319405b226d5d.tar.gz
rockbox-9b8f56f35cfd67a1438ef7a6676319405b226d5d.tar.bz2
rockbox-9b8f56f35cfd67a1438ef7a6676319405b226d5d.zip
Oops. Fix precompiler condition to be for all CONFIG_CHARGING != 0 (as it should be).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19581 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 065690fdb3..f71eb45430 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -682,7 +682,7 @@ static void power_thread(void)
while (1)
{
-#if CONFIG_CHARGING >= CHARGING_MONITOR
+#if CONFIG_CHARGING
unsigned int pwr = power_input_status();
#ifdef HAVE_BATTERY_SWITCH
if ((pwr ^ power_thread_inputs) & POWER_INPUT_BATTERY) {