From d82cd1363bb108fee214d2176834cae56c16c33c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 29 Mar 2020 13:08:58 +1100 Subject: [PATCH] HAL_ChibiOS: fixed bootloader build --- libraries/AP_HAL_ChibiOS/Util.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/Util.cpp b/libraries/AP_HAL_ChibiOS/Util.cpp index 231ce29515..432106167d 100644 --- a/libraries/AP_HAL_ChibiOS/Util.cpp +++ b/libraries/AP_HAL_ChibiOS/Util.cpp @@ -304,6 +304,7 @@ bool Util::was_watchdog_reset() const return stm32_was_watchdog_reset(); } +#if CH_DBG_ENABLE_STACK_CHECK == TRUE && !defined(HAL_BOOTLOADER_BUILD) /* display stack usage as text buffer for @SYS/threads.txt */ @@ -342,3 +343,4 @@ size_t Util::thread_info(char *buf, size_t bufsize) return total; } +#endif