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
This commit is contained in:
Peter Barker 2024-02-15 11:40:29 +11:00 committed by Peter Barker
parent d7ae8b8bb3
commit ee3c9765a4
1 changed files with 1 additions and 1 deletions

View File

@ -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