waf: disable watchdogs on debug builds
This commit is contained in:
parent
5af45db4f2
commit
c7bd87ce33
@ -1032,7 +1032,7 @@ class chibios(Board):
|
||||
if cfg.env.SAVE_TEMPS:
|
||||
env.CXXFLAGS += [ '-S', '-save-temps=obj' ]
|
||||
|
||||
if cfg.options.disable_watchdog:
|
||||
if cfg.options.disable_watchdog or cfg.env.DEBUG:
|
||||
cfg.msg("Disabling Watchdog", "yes")
|
||||
env.CFLAGS += [ '-DDISABLE_WATCHDOG' ]
|
||||
env.CXXFLAGS += [ '-DDISABLE_WATCHDOG' ]
|
||||
|
Loading…
Reference in New Issue
Block a user