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)
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)
}
}
-void power_init(void)
+void powermgmt_init(void)
{
+ power_init();
+
/* init history to 0 */
memset(power_history, 0x00, sizeof(power_history));
/* initialize the history with a single sample to prevent level