diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h index de3048b4ed..33fb0d4a57 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h @@ -507,9 +507,11 @@ * @details This hook is invoked in case to a system halting error before * the system is halted. */ -#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \ - /* System halt code here.*/ \ -} + +#define CH_CFG_SYSTEM_HALT_HOOK(reason) do { \ + extern int printf(const char *fmt, ...); \ + printf(reason); \ +} while(0) /** * @brief Trace hook.