From 8945728c7ef3416529890f264864e31370b34dca Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 15 Feb 2024 11:40:29 +1100 Subject: [PATCH] AP_ICEngine: correct compilation when ICEngine disabled the starter class does things with various other objects which may not be avaialb.e Honour AP_ICENGINE_ENABLED --- libraries/AP_ICEngine/AP_ICEngine_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ICEngine/AP_ICEngine_config.h b/libraries/AP_ICEngine/AP_ICEngine_config.h index 24e7fd4770c30..bc3f820407000 100644 --- a/libraries/AP_ICEngine/AP_ICEngine_config.h +++ b/libraries/AP_ICEngine/AP_ICEngine_config.h @@ -11,5 +11,5 @@ */ #ifndef AP_ICENGINE_TCA9554_STARTER_ENABLED // enable on SITL by default to ensure code is built -#define AP_ICENGINE_TCA9554_STARTER_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL) +#define AP_ICENGINE_TCA9554_STARTER_ENABLED AP_ICENGINE_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL) #endif