HAL_ChibiOS: fixed bootloader build

This commit is contained in:
Andrew Tridgell 2020-03-29 13:08:58 +11:00
parent cd3b4dcc7d
commit d82cd1363b

View File

@ -304,6 +304,7 @@ bool Util::was_watchdog_reset() const
return stm32_was_watchdog_reset(); 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 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; return total;
} }
#endif