Skip to content

Commit

Permalink
AP_ICEngine: correct compilation when ICEngine disabled
Browse files Browse the repository at this point in the history
the starter class does things with various other objects which may not be avaialb.e  Honour AP_ICENGINE_ENABLED
  • Loading branch information
peterbarker committed Feb 15, 2024
1 parent 4b5553a commit 8945728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_ICEngine/AP_ICEngine_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8945728

Please sign in to comment.