remove update_number_of_cells from update_values_battery

This commit is contained in:
amarofarinha 2024-06-09 10:33:52 +01:00
parent 3c3999877d
commit f339c7a7dc

View file

@ -179,8 +179,6 @@ void update_values_battery() { //This function maps all the values fetched via
set_event(EVENT_12V_LOW, leadAcidBatteryVoltage); set_event(EVENT_12V_LOW, leadAcidBatteryVoltage);
} }
update_number_of_cells();
// Check if cell voltages are within allowed range // Check if cell voltages are within allowed range
if (CellVoltMax_mV >= MAX_CELL_VOLTAGE) { if (CellVoltMax_mV >= MAX_CELL_VOLTAGE) {
set_event(EVENT_CELL_OVER_VOLTAGE, 0); set_event(EVENT_CELL_OVER_VOLTAGE, 0);