changeset 364:44795dbadbae

FCHG: bug in CV process caused the control loop to be skipped
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 30 Dec 2017 06:10:48 +0000
parents cce24b9de6db
children f8ad9dcadde0
files src/cs/drivers/drv_app/fchg/fchg_process.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_process.c	Fri Dec 29 07:28:29 2017 +0000
+++ b/src/cs/drivers/drv_app/fchg/fchg_process.c	Sat Dec 30 06:10:48 2017 +0000
@@ -180,7 +180,7 @@
 		return 0;
 	if (pwr_ctrl->cv_dac_curr !=
 	    (pwr_ctrl->cv_dac_init - pwr_ctrl->config.cv_dac_max_decr))
-		return;
+		return 0;
 	rvf_send_trace("Stopping charge by overvoltage condition", 40,
 			NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH, FCHG_USE_ID);
 	ABB_Write_Register_on_page(PAGE0, BCICTL2, 0);