Merge pull request #5185 from etracer65/arming_disabled_msp_disarm
Disarm when configurator sets ARMING_DISABLED_MSP arming disabled flag
This commit is contained in:
commit
9da7416c30
|
@ -1779,6 +1779,9 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
const uint8_t command = sbufReadU8(src);
|
||||
if (command) {
|
||||
setArmingDisabled(ARMING_DISABLED_MSP);
|
||||
if (ARMING_FLAG(ARMED)) {
|
||||
disarm();
|
||||
}
|
||||
} else {
|
||||
unsetArmingDisabled(ARMING_DISABLED_MSP);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue