1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Fix compilation when USE_SECONDARY_IMU not defined

This commit is contained in:
Martin Luessi 2022-01-12 16:00:55 -08:00
parent a8016edd0d
commit da8cc2e9d2
4 changed files with 18 additions and 1 deletions

View file

@ -425,7 +425,11 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
sbufWriteU8(dst, getHwRangefinderStatus());
sbufWriteU8(dst, getHwPitotmeterStatus());
sbufWriteU8(dst, getHwOpticalFlowStatus());
#ifdef USE_SECONDARY_IMU
sbufWriteU8(dst, getHwSecondaryImuStatus());
#else
sbufWriteU8(dst, 0);
#endif
break;
case MSP_ACTIVEBOXES: