Disarm when configurator sets ARMING_DISABLED_MSP arming disabled flag
commit076ad942e421aadb73fd640da978aeaaa6aede3f
authorBruce Luckcuck <github@etracer.net>
Tue, 13 Feb 2018 14:51:50 +0000 (13 09:51 -0500)
committerBruce Luckcuck <github@etracer.net>
Tue, 13 Feb 2018 14:51:50 +0000 (13 09:51 -0500)
treeb27c1d0d00acbf00c9d0899dffcfb7d8dcf93d5f
parent5593b43af7aa6a5d74e147c0488f12aa5f4dda36
Disarm when configurator sets ARMING_DISABLED_MSP arming disabled flag

Addresses an edge case where the user could turn on the safety switch (on motors tab), arm and spin the motors, and then turn off the safety switch (without disarming first).  In this scenario the motors would keep spinning even though the ARMING_DISABLED_MSP arming disabled flag would be set.

This change checks the arming state and disarms when the configurator sets the ARMING_DISABLED_MSP flag.
src/main/interface/msp.c