waf: don't imply no watchdog with --debug

this broke AP_Periph with --debug. Better to use --disable-watchdog if
needed
This commit is contained in:
Andrew Tridgell 2023-07-08 13:06:29 +10:00
parent 93fb14f3be
commit 15ca52d890

View File

@ -1054,7 +1054,7 @@ class chibios(Board):
if cfg.env.SAVE_TEMPS:
env.CXXFLAGS += [ '-S', '-save-temps=obj' ]
if cfg.options.disable_watchdog or cfg.env.DEBUG:
if cfg.options.disable_watchdog:
cfg.msg("Disabling Watchdog", "yes")
env.CFLAGS += [ '-DDISABLE_WATCHDOG' ]
env.CXXFLAGS += [ '-DDISABLE_WATCHDOG' ]