Skip to content

Commit

Permalink
add amps and Temps to lastError - opt. message
Browse files Browse the repository at this point in the history
  • Loading branch information
DieWaldfee authored Sep 22, 2024
1 parent 532a7e9 commit fd9954b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ESP32DevKitV4/Heizstabsteuerung.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,8 @@ static void integrityCheck (void *args){
//letzte Sekunde lag noch ein Fehler vor
if (err == 1) {
//Konsistenzfehler -> Notabschaltung
lastError = "Integritätsfehler - Schaltzustand und Phasenströme passen nicht zueinander";
lastError = "Integritätsfehler - Schaltzustand und Phasenströme passen nicht zueinander. A1: " + String(a1);
lastError = lastError + "A; P1on: " + String(p1on) + "; A2: " + String(a2) + "A; P2on: " + String(p2on) + "; A3: " + String(a3) + "A; P3on: " + String(p3on) + ".";
panicStop();
} else {
rc = xSemaphoreTake(mutexAmp, portMAX_DELAY);
Expand Down Expand Up @@ -1797,7 +1798,7 @@ void termalLimits () {
if (debug) Serial.print("°C :: Adresse: ");
if (debug) Serial.println(Adresse3);
//lastError absetzen
lastError="Zwangsabschaltung wegen Unterschied zwischen Top#1 und Top#2!";
lastError="Zwangsabschaltung wegen Unterschied zwischen TempTop1 (" + String(tempTop1) + "°C) und TempTop2 (" + String(tempTop2) + "°C)! DeltaT=" + String(deltaT) + "°K";
panicStop();
}
}
Expand Down

0 comments on commit fd9954b

Please sign in to comment.