FreeCalypso > hg > fc-tourmaline
changeset 222:c336ed5691a5
FCHG: clear BCICTL2 on boot for extra safety
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Apr 2021 22:04:10 +0000 |
parents | 5bf097aeaad7 |
children | 740a8e8fc9d7 |
files | src/cs/drivers/drv_app/fchg/fchg_task.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_task.c Mon Apr 26 21:55:13 2021 +0000 +++ b/src/cs/drivers/drv_app/fchg/fchg_task.c Mon Apr 26 22:04:10 2021 +0000 @@ -36,6 +36,8 @@ pwr_load_ffs_batt_table(); pwr_load_ffs_charging_config(); set_initial_state(); + /* just for safety, clear any previous BCI hardware state */ + ABB_Write_Register_on_page(PAGE0, BCICTL2, 0); pwr_init_discharge(); fchg_is_running = 1;