summaryrefslogtreecommitdiffstats
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2008-03-11 09:38:12 +0000
committerRobert Kukla <roolku@rockbox.org>2008-03-11 09:38:12 +0000
commit6a6c820f5f27b7e0d64a7c3e0cd546db7385bb49 (patch)
treea0e8998dffcf75f2ee096f565c6caa5521f89dd2 /firmware/powermgmt.c
parentc194b388fa04b2a89f361eea45e14f2796402306 (diff)
downloadrockbox-6a6c820f5f27b7e0d64a7c3e0cd546db7385bb49.tar.gz
rockbox-6a6c820f5f27b7e0d64a7c3e0cd546db7385bb49.zip
m:robe 100 - remove ugly workaround for false initial voltage readings and wait until readings have settled instead
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index d1efa29dca..072a31fa3f 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -798,6 +798,9 @@ static void power_thread(void)
#endif
/* Delay reading the first battery level */
+#ifdef MROBE_100
+ while(battery_adc_voltage()>4200) /* gives false readings initially */
+#endif
sleep(HZ/100);
/* initialize the voltages for the exponential filter */