summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
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