Skip to content

Commit

Permalink
Improve comment on plausability check
Browse files Browse the repository at this point in the history
  • Loading branch information
dalathegreat committed Nov 21, 2023
1 parent 59da9ea commit 3545c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Software/src/battery/NISSAN-LEAF-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void update_values_leaf_battery() { /* This function maps all the values fetched
}

//Check if SOC% is plausible
if (battery_voltage > (ABSOLUTE_MAX_VOLTAGE - 100)) {
if (battery_voltage > (ABSOLUTE_MAX_VOLTAGE - 100)) { // When pack voltage is close to max, and SOC% is still low, raise FAULT
if (LB_SOC < 650) {
bms_status = FAULT;
Serial.println("ERROR: SOC% reported by battery not plausible. Restart battery!");
Expand Down

0 comments on commit 3545c3d

Please sign in to comment.