mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 06:45:12 +03:00
Merge pull request #706 from mikeller/fix_arming_disable_msp
Fixed disabling of arming when in configurator.
This commit is contained in:
commit
cbc78313c7
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ $(document).ready(function () {
|
|||
if (semver.gte(CONFIG.apiVersion, "1.37.0") && CONFIG.arming_disabled) {
|
||||
CONFIG.arming_disabled = false;
|
||||
|
||||
MSP.send_message(MSPCodes.MSP_ARMING_DISABLE, false, false, function () {
|
||||
MSP.send_message(MSPCodes.MSP_ARMING_DISABLE, mspHelper.crunch(MSPCodes.MSP_ARMING_DISABLE), false, function () {
|
||||
GUI.log(chrome.i18n.getMessage('armingEnabled'));
|
||||
|
||||
finishClose(toggleStatus);
|
||||
|
@ -237,7 +237,7 @@ function onOpen(openInfo) {
|
|||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
CONFIG.arming_disabled = true;
|
||||
|
||||
MSP.send_message(MSPCodes.MSP_ARMING_DISABLE, false, false, function () {
|
||||
MSP.send_message(MSPCodes.MSP_ARMING_DISABLE, mspHelper.crunch(MSPCodes.MSP_ARMING_DISABLE), false, function () {
|
||||
GUI.log(chrome.i18n.getMessage('armingDisabled'));
|
||||
|
||||
finishOpen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue