mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Implement Support for External Equipment / Emergency Button on Battery Emulator
This commit is contained in:
parent
81cd6780a3
commit
c1a262421b
7 changed files with 76 additions and 5 deletions
|
@ -933,9 +933,6 @@ void onOTAStart() {
|
|||
clear_event(EVENT_OTA_UPDATE_TIMEOUT);
|
||||
ota_active = true;
|
||||
|
||||
//completely force stop the CAN communication
|
||||
ESP32Can.CANStop();
|
||||
|
||||
ota_timeout_timer.reset();
|
||||
}
|
||||
|
||||
|
@ -968,8 +965,6 @@ void onOTAEnd(bool success) {
|
|||
#endif // DEBUG_VIA_USB
|
||||
//try to Resume the battery pause and CAN communication
|
||||
setBatteryPause(false, false);
|
||||
//resume CAN communication
|
||||
ESP32Can.CANInit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue