Skip to content

Commit 183d9fc

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ void ArduinoIoTCloudTCP::update()
312312
_state = next_state;
313313

314314
/* This watchdog feed is actually needed only by the RP2040 CONNECT cause its
315-
* maximum watchdog window is 8388ms; despite this we feed it for all
315+
* maximum watchdog window is 8389ms; despite this we feed it for all
316316
* supported ARCH to keep code aligned.
317317
*/
318318
watchdog_reset();

src/utility/watchdog/Watchdog.cpp

+1-1
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)