waf: disable watchdogs on debug builds

This commit is contained in:
Andy Piper 2023-02-02 17:35:32 +00:00 committed by Andrew Tridgell
parent 5af45db4f2
commit c7bd87ce33

View File

@ -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' ]