changeset 255:1a4413c4eb7e

FCHG: missed charging start event in BSIM mode
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 May 2021 23:20:23 +0000
parents 4533ef63fdb0
children aec644728174
files src/cs/drivers/drv_app/fchg/fchg_process.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_process.c	Wed May 12 23:01:28 2021 +0000
+++ b/src/cs/drivers/drv_app/fchg/fchg_process.c	Wed May 12 23:20:23 2021 +0000
@@ -396,6 +396,8 @@
 				45, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW,
 				FCHG_USE_ID);
 		pwr_ctrl->state = FCHG_STATE_CI_CHARGING;
+		if (pwr_ctrl->event_handler)
+			pwr_ctrl->event_handler(FCHG_EVENT_CHARGING_START);
 		return;
 	default:
 		/* remaining states require no action in BSIM */