summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-08-25 08:57:49 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-08-25 08:57:49 +0000
commit53ee344743d89a987b8a9ebe79aa7e732e824148 (patch)
treeff28ef9ecd954fb4be16b7b6f7b992eca7396303 /firmware/powermgmt.c
parent71316085de3b025e590297d28634d53c6edfb07c (diff)
downloadrockbox-53ee344743d89a987b8a9ebe79aa7e732e824148.tar.gz
rockbox-53ee344743d89a987b8a9ebe79aa7e732e824148.zip
Slightly more correct initialization of the power/charging code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3940 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 13043cb88f..78f4a5a3cb 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -685,8 +685,10 @@ static void power_thread(void)
685 } 685 }
686} 686}
687 687
688void power_init(void) 688void powermgmt_init(void)
689{ 689{
690 power_init();
691
690 /* init history to 0 */ 692 /* init history to 0 */
691 memset(power_history, 0x00, sizeof(power_history)); 693 memset(power_history, 0x00, sizeof(power_history));
692 /* initialize the history with a single sample to prevent level 694 /* initialize the history with a single sample to prevent level