From dbf5357592e1293148af384eb8e4122e2a60d2d1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 17 May 2021 19:45:10 +1000 Subject: [PATCH] AP_HAL_ChibiOS: base use of InternalError on build type not HAL_LOGGING_ENABLED Really not sure why we were using HAL_LOGGING_ENABLED here --- libraries/AP_HAL_ChibiOS/system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/system.cpp b/libraries/AP_HAL_ChibiOS/system.cpp index 6321a2a120..2bd587fed7 100644 --- a/libraries/AP_HAL_ChibiOS/system.cpp +++ b/libraries/AP_HAL_ChibiOS/system.cpp @@ -22,6 +22,7 @@ #include #include "hwdef/common/watchdog.h" #include "hwdef/common/stm32_util.h" +#include #include #include "hal.h" @@ -233,7 +234,7 @@ void init() void panic(const char *errormsg, ...) { -#if !defined(HAL_BOOTLOADER_BUILD) && HAL_LOGGING_ENABLED +#if !defined(HAL_BOOTLOADER_BUILD) && !APM_BUILD_TYPE(APM_BUILD_iofirmware) INTERNAL_ERROR(AP_InternalError::error_t::panic); va_list ap;