From 7591e188e8723300ff60a4c1ce389e32a355daaf Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 13 Oct 2023 10:11:19 +1100 Subject: [PATCH] hwdef: correct compilation of CubeOrange-SimOnHW ../../libraries/AP_InertialSensor/AP_InertialSensor_config.h:20:2: error: #error "INS_AUX_INSTANCES must be zero if INS_MAX_INSTANCES is less than 3" 20 | #error "INS_AUX_INSTANCES must be zero if INS_MAX_INSTANCES is less than 3" | ^~~~~ --- .../hwdef/CubeOrangePlus-SimOnHardWare/hwdef.dat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-SimOnHardWare/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-SimOnHardWare/hwdef.dat index cf5b8ec4a4..9046dfbb06 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-SimOnHardWare/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-SimOnHardWare/hwdef.dat @@ -3,6 +3,9 @@ include ../CubeOrangePlus/hwdef.dat include ../include/SimOnHW.inc +undef INS_AUX_INSTANCES +define INS_AUX_INSTANCES 0 + # short board name override (23 chars) define CHIBIOS_SHORT_BOARD_NAME "CubeOrange+SimOnHW"