Skip to content

Commit e1ae1d0

Browse files
committed
Report halt reason indefinitely
1 parent 251fcc0 commit e1ae1d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Wippersnapper_V2.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ void Wippersnapper_V2::haltErrorV2(const char *error,
936936
if (!reboot) {
937937
WsV2.feedWDTV2(); // Feed the WDT indefinitely to hold the WIPPER drive
938938
// open
939+
delay(1000);
939940
} else {
940941
// Let the WDT fail out and reset!
941942
#ifndef ARDUINO_ARCH_ESP8266
@@ -946,6 +947,13 @@ void Wippersnapper_V2::haltErrorV2(const char *error,
946947
delayMicroseconds(1000000);
947948
#endif
948949
}
950+
WS_DEBUG_PRINT("ERROR ");
951+
if (reboot) {
952+
WS_DEBUG_PRINT("[RESET]: ");
953+
} else {
954+
WS_DEBUG_PRINT("[HANG]: ");
955+
}
956+
WS_DEBUG_PRINTLN(error);
949957
}
950958
}
951959

0 commit comments

Comments
 (0)