diff src/cs/drivers/drv_app/fchg/fchg_messages.c @ 262:7420959e02ec

FCHG rework for charger plug/unplug debouncing
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 May 2021 05:38:55 +0000
parents aec644728174
children
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_messages.c	Fri May 14 02:49:05 2021 +0000
+++ b/src/cs/drivers/drv_app/fchg/fchg_messages.c	Fri May 14 05:38:55 2021 +0000
@@ -19,10 +19,8 @@
 		pwr_charge_stop_req();
 		return;
 	case PWR_CHARGER_PLUGGED_IND:
-		pwr_charger_plug();
-		return;
 	case PWR_CHARGER_UNPLUGGED_IND:
-		pwr_charger_unplug();
+		pwr_charger_plug_unplug_ind();
 		return;
 	case PWR_ADC_IND:
 		pwr_process_adc((struct pwr_adc_ind_s *) msg_ptr);