Skip to content

Commit

Permalink
waf: don't imply no watchdog with --debug
Browse files Browse the repository at this point in the history
this broke AP_Periph with --debug. Better to use --disable-watchdog if
needed
  • Loading branch information
tridge committed Jul 8, 2023
1 parent 4a347fb commit 684748b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ def configure_env(self, cfg, env):
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' ]
Expand Down

0 comments on commit 684748b

Please sign in to comment.