Browse Source

function name updated from controller_SetCurrent to controllerSetCurrent

namrota ghosh 6 months ago
parent
commit
cf90a82700
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/controller/controller.c
  2. 1 1
      src/controller/controller.h

+ 1 - 1
src/controller/controller.c

@@ -12,7 +12,7 @@
 Format: command + ((slot_id) + data (optional))
 */
 //Send command to set charge and discharge current to the target
-void controller_SetCurrent(uint8_t slot_id, int16_t current_mA){
+void controllerSetCurrent(uint8_t slot_id, int16_t current_mA){
 
     //For dynamic addressing:
     uint8_t target_address= TARGET_BASE_ADDRESS + ((slot_id & 0b00000100) >> 2);

+ 1 - 1
src/controller/controller.h

@@ -18,7 +18,7 @@ typedef enum{
 }mcu_I2C_command;
 
 uint8_t detect_target_address();
-void controller_SetCurrent(uint8_t slot_id, int16_t current_mA);
+void controllerSetCurrent(uint8_t slot_id, int16_t current_mA);
 void controller_EvaluateBatterySlotState(uint8_t slot_id, BatteryMeasurement *measurement);
 bool getBatteryMeasurement(uint8_t slot_id);
 #endif