mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #9527 from mikeller/add_missing_acc_calibration_to_status
Add missing acc calibration to status
This commit is contained in:
commit
4f7c8d154a
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_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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue