mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Remove Volvo writing to bms_status
This commit is contained in:
parent
ffa7a54f20
commit
20543f98fa
1 changed files with 0 additions and 2 deletions
|
@ -324,14 +324,12 @@ void receive_can_battery(CAN_frame_t rx_frame) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (min_max_voltage[1] >= MAX_CELL_VOLTAGE) {
|
if (min_max_voltage[1] >= MAX_CELL_VOLTAGE) {
|
||||||
system_bms_status = FAULT;
|
|
||||||
set_event(EVENT_CELL_OVER_VOLTAGE, 0);
|
set_event(EVENT_CELL_OVER_VOLTAGE, 0);
|
||||||
#ifdef DEBUG_VIA_USB
|
#ifdef DEBUG_VIA_USB
|
||||||
Serial.println("CELL OVERVOLTAGE!!! Stopping battery charging and discharging. Inspect battery!");
|
Serial.println("CELL OVERVOLTAGE!!! Stopping battery charging and discharging. Inspect battery!");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (min_max_voltage[0] <= MIN_CELL_VOLTAGE) {
|
if (min_max_voltage[0] <= MIN_CELL_VOLTAGE) {
|
||||||
system_bms_status = FAULT;
|
|
||||||
set_event(EVENT_CELL_UNDER_VOLTAGE, 0);
|
set_event(EVENT_CELL_UNDER_VOLTAGE, 0);
|
||||||
#ifdef DEBUG_VIA_USB
|
#ifdef DEBUG_VIA_USB
|
||||||
Serial.println("CELL UNDERVOLTAGE!!! Stopping battery charging and discharging. Inspect battery!");
|
Serial.println("CELL UNDERVOLTAGE!!! Stopping battery charging and discharging. Inspect battery!");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue