mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Added 'missing acc calibration' flag to board info MSP command.
This commit is contained in:
parent
0f93dc9c88
commit
58c90106d3
1 changed files with 5 additions and 0 deletions
|
@ -602,6 +602,7 @@ static bool mspCommonProcessOutCommand(int16_t cmdMSP, sbuf_t *dst, mspPostProce
|
||||||
#define TARGET_SUPPORTS_CUSTOM_DEFAULTS_BIT 4
|
#define TARGET_SUPPORTS_CUSTOM_DEFAULTS_BIT 4
|
||||||
#define TARGET_HAS_CUSTOM_DEFAULTS_BIT 5
|
#define TARGET_HAS_CUSTOM_DEFAULTS_BIT 5
|
||||||
#define TARGET_SUPPORTS_RX_BIND_BIT 6
|
#define TARGET_SUPPORTS_RX_BIND_BIT 6
|
||||||
|
#define TARGET_ACC_NEEDS_CALIBRATION_BIT 7
|
||||||
|
|
||||||
uint8_t targetCapabilities = 0;
|
uint8_t targetCapabilities = 0;
|
||||||
#ifdef USE_VCP
|
#ifdef USE_VCP
|
||||||
|
@ -626,6 +627,10 @@ static bool mspCommonProcessOutCommand(int16_t cmdMSP, sbuf_t *dst, mspPostProce
|
||||||
targetCapabilities |= (getRxBindSupported() << TARGET_SUPPORTS_RX_BIND_BIT);
|
targetCapabilities |= (getRxBindSupported() << TARGET_SUPPORTS_RX_BIND_BIT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_ACC)
|
||||||
|
targetCapabilities |= (!accHasBeenCalibrated() << TARGET_ACC_NEEDS_CALIBRATION_BIT);
|
||||||
|
#endif
|
||||||
|
|
||||||
sbufWriteU8(dst, targetCapabilities);
|
sbufWriteU8(dst, targetCapabilities);
|
||||||
|
|
||||||
// Target name with explicit length
|
// Target name with explicit length
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue