Skip to content

Commit 1b4168f

Browse files
committed
Fix NANO_RP2040 maximum watchdog timeout. WD register load value gets saturated to 16777215
1 parent d09c6dc commit 1b4168f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ void ArduinoIoTCloudTCP::update()
321321
_state = next_state;
322322

323323
/* This watchdog feed is actually needed only by the RP2040 CONNECT cause its
324-
* maximum watchdog window is 8388ms; despite this we feed it for all
324+
* maximum watchdog window is 8389ms; despite this we feed it for all
325325
* supported ARCH to keep code aligned.
326326
*/
327327
#ifdef ARDUINO_ARCH_SAMD

src/utility/watchdog/Watchdog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#ifdef ARDUINO_ARCH_MBED
3636
# include <watchdog_api.h>
3737
# define PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms (32760)
38-
# define NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms (32760)
38+
# define NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms (8389)
3939
#endif /* ARDUINO_ARCH_MBED */
4040

4141
/******************************************************************************

0 commit comments

Comments
 (0)