changeset 257:3edd1a600218

mfw_mme.c: hack to get initial battery state on boot
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 May 2021 04:32:53 +0000
parents aec644728174
children 45cc81cc6230
files src/ui/mfw/mfw_mme.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui/mfw/mfw_mme.c	Thu May 13 02:37:14 2021 +0000
+++ b/src/ui/mfw/mfw_mme.c	Thu May 13 04:32:53 2021 +0000
@@ -273,6 +273,9 @@
     audio_Init(hdsCb); //audio driver
 #endif
 
+    /* a hack to get the initial battery state on boot */
+    pwrCb(FCHG_EVENT_DISCHARGE);
+
     mmeRxInfo(5,0);
 
     /* install prim handler     */