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

Added 'missing acc calibration' flag to board info MSP command.

This commit is contained in:
mikeller 2020-03-01 21:19:27 +13:00
parent 0f93dc9c88
commit 58c90106d3

View file

@ -602,6 +602,7 @@ static bool mspCommonProcessOutCommand(int16_t cmdMSP, sbuf_t *dst, mspPostProce
#define TARGET_SUPPORTS_CUSTOM_DEFAULTS_BIT 4
#define TARGET_HAS_CUSTOM_DEFAULTS_BIT 5
#define TARGET_SUPPORTS_RX_BIND_BIT 6
#define TARGET_ACC_NEEDS_CALIBRATION_BIT 7
uint8_t targetCapabilities = 0;
#ifdef USE_VCP
@ -626,6 +627,10 @@ static bool mspCommonProcessOutCommand(int16_t cmdMSP, sbuf_t *dst, mspPostProce
targetCapabilities |= (getRxBindSupported() << TARGET_SUPPORTS_RX_BIND_BIT);
#endif
#if defined(USE_ACC)
targetCapabilities |= (!accHasBeenCalibrated() << TARGET_ACC_NEEDS_CALIBRATION_BIT);
#endif
sbufWriteU8(dst, targetCapabilities);
// Target name with explicit length