Skip to content

Commit dfa628f

Browse files
committed
Swap to ints for haltError
1 parent f64833a commit dfa628f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Wippersnapper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2502,11 +2502,11 @@ void Wippersnapper::runNetFSM() {
25022502
*/
25032503
/**************************************************************************/
25042504
void Wippersnapper::haltError(String error, ws_led_status_t ledStatusColor,
2505-
uint8_t seconds_until_reboot) {
2505+
int seconds_until_reboot) {
25062506
#ifdef ARDUINO_ARCH_ESP8266
2507-
uint16_t wdt_timeout_ms = 3200;
2507+
int wdt_timeout_ms = 3200;
25082508
#else
2509-
uint16_t wdt_timeout_ms = 5000;
2509+
int wdt_timeout_ms = 5000;
25102510
#endif
25112511
int seconds_until_wdt_enable =
25122512
seconds_until_reboot - (int)(wdt_timeout_ms / 1000);

src/Wippersnapper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class Wippersnapper {
312312
// Error handling helpers
313313
void haltError(String error,
314314
ws_led_status_t ledStatusColor = WS_LED_STATUS_ERROR_RUNTIME,
315-
uint8_t seconds_until_reboot = 25);
315+
int seconds_until_reboot = 25);
316316
void errorWriteHang(String error);
317317

318318
// MQTT topic callbacks //

0 commit comments

Comments
 (0)