Ver Fonte

function name updated from controller_SetCurrent to controllerSetCurrent

namrota ghosh há 6 meses atrás
pai
commit
90a262ffde
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      src/cc_cv_charging.c

+ 5 - 5
src/cc_cv_charging.c

@@ -164,7 +164,7 @@ void CC_CV_ControlCharging(uint8_t slot_id) {
     // PRE CHARGE STATE: Battery Voltage is lesser than 3000 mVolts
     case STATE_PRE_CHARGE:
       Battery_enableCharging(slot_id);
-      controller_SetCurrent(slot_id, charge_current);
+      controllerSetCurrent(slot_id, charge_current);
       printf("PRE CHARGING: Slot %d at %d mA.\n", slot_id, charge_current);
       chargeCurrent_initialized= false;
       break;
@@ -173,7 +173,7 @@ void CC_CV_ControlCharging(uint8_t slot_id) {
     // reaches to (MAXIMUM_VOLTAGE(4200)-BATTERY_THRESHOLD(20))= 4180 mV
     case STATE_CC_CHARGING:
       Battery_enableCharging(slot_id);
-      controller_SetCurrent(slot_id, charge_current);
+      controllerSetCurrent(slot_id, charge_current);
       printf("CC CHARGING: Slot %d, Current: %d mA, Voltage: %d mV.\n", slot_id, batt_current, batt_voltage);
       chargeCurrent_initialized= false;
       break;
@@ -192,7 +192,7 @@ void CC_CV_ControlCharging(uint8_t slot_id) {
         if(cvChargingPhaseCurrent >= batt_cutoff_current){
             printf("DAC CV Current: %d, Battery Voltage: %d, Battery Current: %d\n", cvChargingPhaseCurrent, batt_voltage, batt_current);
             cvChargingPhaseCurrent-= 5; 
-            controller_SetCurrent(slot_id, cvChargingPhaseCurrent);         
+            controllerSetCurrent(slot_id, cvChargingPhaseCurrent);         
         }else{
             printf("Battery Current: %d\n", batt_current);
             chargeCurrent_initialized= false;
@@ -207,7 +207,7 @@ void CC_CV_ControlCharging(uint8_t slot_id) {
     case STATE_DISCHARGING:
       Battery_enableCharging(slot_id);
       Battery_enableDischarging(slot_id);
-      controller_SetCurrent(slot_id, (-1 * charge_current));
+      controllerSetCurrent(slot_id, (-1 * charge_current));
       printf("DISCHARGING: Slot %d at %d mA.\n", slot_id, batt_current);
       chargeCurrent_initialized= false;
       //Safety Check
@@ -225,7 +225,7 @@ void CC_CV_ControlCharging(uint8_t slot_id) {
         Battery_disableCharging(slot_id);
         Battery_disableDischarging(slot_id);
         printf("Final Discharge with charge current:%d\n", charge_current);
-        controller_SetCurrent(slot_id, 0);
+        controllerSetCurrent(slot_id, 0);
       }else{
         battery->battery_charging_state= STATE_CC_CHARGING;
       }