Skip to content

Commit

Permalink
fix: timeout datatype in haltError
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jan 27, 2025
1 parent 4f1d110 commit 893ff34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Wippersnapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2504,9 +2504,9 @@ void Wippersnapper::runNetFSM() {
void Wippersnapper::haltError(String error, ws_led_status_t ledStatusColor,
uint8_t seconds_until_reboot) {
#ifdef ARDUINO_ARCH_ESP8266
uint8_t wdt_timeout_ms = 3200;
uint16_t wdt_timeout_ms = 3200;
#else
uint8_t wdt_timeout_ms = 5000;
uint16_t wdt_timeout_ms = 5000;
#endif
int seconds_until_wdt_enable =
seconds_until_reboot - (int)(wdt_timeout_ms / 1000);
Expand Down

0 comments on commit 893ff34

Please sign in to comment.