Merge branch 'main' into bugfix/renault-gkoe

This commit is contained in:
Daniel Öster 2024-01-09 13:49:21 +02:00 committed by GitHub
commit af46eeea50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 97 additions and 200 deletions

View file

@ -319,10 +319,14 @@ String processor(const String& var) {
void onOTAStart() {
// Log when OTA has started
Serial.println("OTA update started!");
// <Add your own code here>
ESP32Can.CANStop();
bms_status = 5; //Inform inverter that we are updating
LEDcolor = BLUE;
}
void onOTAProgress(size_t current, size_t final) {
bms_status = 5; //Inform inverter that we are updating
LEDcolor = BLUE;
// Log every 1 second
if (millis() - ota_progress_millis > 1000) {
ota_progress_millis = millis();
@ -337,5 +341,6 @@ void onOTAEnd(bool success) {
} else {
Serial.println("There was an error during OTA update!");
}
// <Add your own code here>
bms_status = 5; //Inform inverter that we are updating
LEDcolor = BLUE;
}