1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Report NONE for baro and mag MSP requests if not USE_ed. (#8135)

Report NONE for baro and mag MSP requests if not USE_ed.
This commit is contained in:
Michael Keller 2019-05-02 09:16:39 +12:00 committed by GitHub
commit bcac7f2e0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1504,12 +1504,12 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
#ifdef USE_BARO
sbufWriteU8(dst, barometerConfig()->baro_hardware);
#else
sbufWriteU8(dst, 0);
sbufWriteU8(dst, BARO_NONE);
#endif
#ifdef USE_MAG
sbufWriteU8(dst, compassConfig()->mag_hardware);
#else
sbufWriteU8(dst, 0);
sbufWriteU8(dst, MAG_NONE);
#endif
break;