diff src/cs/drivers/drv_app/fchg/fchg_task.c @ 236:3c790d29748e

fchg_is_running startup sync flag change: set the flag when the first ADC message has been processed, and not merely when the task is running - this way the flag indicates that meaningful info about the state of the battery is available.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 02 May 2021 04:25:48 +0000
parents c336ed5691a5
children 769cf6273fe4
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_task.c	Sat May 01 10:36:52 2021 +0000
+++ b/src/cs/drivers/drv_app/fchg/fchg_task.c	Sun May 02 04:25:48 2021 +0000
@@ -9,9 +9,6 @@
 #include "rvm/rvm_use_id_list.h"
 #include "abb/abb.h"
 
-/* startup synchronization with MMI task in GPF land */
-int fchg_is_running;
-
 static void set_initial_state(void)
 {
 	SYS_UWORD16 abb_status;
@@ -39,7 +36,6 @@
 	/* just for safety, clear any previous BCI hardware state */
 	ABB_Write_Register_on_page(PAGE0, BCICTL2, 0);
 	pwr_init_discharge();
-	fchg_is_running = 1;
 
 	/* loop to process messages */
 	while (error_occured == FALSE)