From c7bd87ce33507c75745a459cd7d15e2ffcad457e Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Thu, 2 Feb 2023 17:35:32 +0000 Subject: [PATCH] waf: disable watchdogs on debug builds --- Tools/ardupilotwaf/boards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 6333444d5b..1b34843015 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -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' ]