Skip to content

Commit f64833a

Browse files
committed
fix: timeout datatype in haltError
1 parent e92e740 commit f64833a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Wippersnapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,9 +2504,9 @@ void Wippersnapper::runNetFSM() {
25042504
void Wippersnapper::haltError(String error, ws_led_status_t ledStatusColor,
25052505
uint8_t seconds_until_reboot) {
25062506
#ifdef ARDUINO_ARCH_ESP8266
2507-
uint8_t wdt_timeout_ms = 3200;
2507+
uint16_t wdt_timeout_ms = 3200;
25082508
#else
2509-
uint8_t wdt_timeout_ms = 5000;
2509+
uint16_t wdt_timeout_ms = 5000;
25102510
#endif
25112511
int seconds_until_wdt_enable =
25122512
seconds_until_reboot - (int)(wdt_timeout_ms / 1000);

0 commit comments

Comments
 (0)