mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Adds arming disable flags to MSP_STATUS payload
This commit is contained in:
parent
265dd7bdc5
commit
dbdd3be4a5
1 changed files with 7 additions and 0 deletions
|
@ -732,6 +732,13 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
||||||
byteCount = constrain(byteCount, 0, 15); // limit to 16 bytes (128 bits)
|
byteCount = constrain(byteCount, 0, 15); // limit to 16 bytes (128 bits)
|
||||||
sbufWriteU8(dst, byteCount);
|
sbufWriteU8(dst, byteCount);
|
||||||
sbufWriteData(dst, ((uint8_t*)&flightModeFlags) + 4, byteCount);
|
sbufWriteData(dst, ((uint8_t*)&flightModeFlags) + 4, byteCount);
|
||||||
|
|
||||||
|
// Write arming disable flags
|
||||||
|
// 1 byte, flag count
|
||||||
|
sbufWriteU8(dst, NUM_ARMING_DISABLE_FLAGS);
|
||||||
|
// 4 bytes, flags
|
||||||
|
uint32_t armingDisableFlags = getArmingDisableFlags();
|
||||||
|
sbufWriteU32(dst, armingDisableFlags);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue