mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Add error handling write values to 0
This commit is contained in:
parent
44fa2ba3b0
commit
4f6aecfdb2
2 changed files with 9 additions and 15 deletions
|
@ -82,6 +82,8 @@ void manageSerialLinkTransmitter() {
|
|||
Serial.print(currentTime);
|
||||
Serial.println(" - Transmit Failed : 60 seconds");
|
||||
bms_status = 4; //FAULT
|
||||
max_target_discharge_power = 0;
|
||||
max_target_charge_power = 0;
|
||||
LEDcolor = RED;
|
||||
// throw error
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue