Skip to content

Commit b3cc2fa

Browse files
jhmaloneyh2zero
authored andcommitted
Make CONFIG_WDT_TIMEOUT_SECONDS default to zero (disabled). Helps beginners nto be taken by surprise by WDT restarts.
1 parent 188f6c0 commit b3cc2fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ For example: `'-DCONFIG_MAIN_TASK_STACK_SIZE=512'` This will set the main task s
135135
* `CONFIG_RTOS_MIN_TASK_STACK_SIZE` - set the minimum task stack size.
136136
* `CONFIG_RTOS_TIMER_QUEUE_LENGTH` - set the queue size for the FreeRTOS timers.
137137
* `CONFIG_RTOS_TIMER_STACK_DEPTH` - set the timer task stack size **in 32bit words**.
138-
* `CONFIG_WDT_TIMEOUT_SECONDS` - set the number of seconds before the watchdog times out (0 = disable watchdog, default = 5).
138+
* `CONFIG_WDT_TIMEOUT_SECONDS` - set the number of seconds before the watchdog times out (0 = disable watchdog, default = 0).
139139
* Nimble configuration options can also be included, the list of those can be found [here](https://h2zero.github.io/NimBLE-Arduino/md__command_line_config.html)
140140
* Other compiler options or definitions for other libraries can also be specified.
141141

cores/nRF5/wiring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
#ifndef CONFIG_WDT_TIMEOUT_SECONDS
30-
#define CONFIG_WDT_TIMEOUT_SECONDS 5
30+
#define CONFIG_WDT_TIMEOUT_SECONDS 0
3131
#endif
3232

3333
#define DFU_MAGIC_SERIAL_ONLY_RESET 0x4e

0 commit comments

Comments
 (0)