Implement Support for External Equipment / Emergency Button on Battery Emulator

This commit is contained in:
amarofarinha 2024-10-02 02:50:32 +01:00
parent 81cd6780a3
commit c1a262421b
7 changed files with 76 additions and 5 deletions

View file

@ -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();
}
}