Skip to content

Commit

Permalink
Allow watchdog in debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Kunze committed Mar 17, 2018
1 parent fee0219 commit d883c87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#include "pinning.c"

/* use watchdog only when not debugging */
#ifndef DEBUG
#if !defined(DEBUG) || defined(DEBUG_USE_WATCHDOG)
# define USE_WATCHDOG
#endif

Expand Down
1 change: 1 addition & 0 deletions config.in
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ fi
elif [ "$SOFT_UART_SUPPORT" = y ]; then
int "Software-UART Baudrate" DEBUG_BAUDRATE 19200
fi
dep_bool 'Watchdog in debug mode' DEBUG_USE_WATCHDOG $DEBUG
comment 'Debugging Flags'
dep_bool 'Hooks' DEBUG_HOOK $DEBUG
dep_bool 'Reset Reason' DEBUG_RESET_REASON $DEBUG
Expand Down
7 changes: 7 additions & 0 deletions doc/Configure.help
Original file line number Diff line number Diff line change
Expand Up @@ -3612,3 +3612,10 @@ BLUETOOTH_PIN
The pairing pin code. Alphanumeric password. 16 characters max.
Default: 1234

Watchdog in debug mode
DEBUG_USE_WATCHDOG
Depends on:
* Enable Debugging (DEBUG)

Activate the watchdog also in debug mode. Default is deactivated.

0 comments on commit d883c87

Please sign in to comment.