mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 22:05:13 +03:00
Fixed disabling of arming when in configurator.
This commit is contained in:
parent
0528d03396
commit
ccebeb817f
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) {
|
if (semver.gte(CONFIG.apiVersion, "1.37.0") && CONFIG.arming_disabled) {
|
||||||
CONFIG.arming_disabled = false;
|
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'));
|
GUI.log(chrome.i18n.getMessage('armingEnabled'));
|
||||||
|
|
||||||
finishClose(toggleStatus);
|
finishClose(toggleStatus);
|
||||||
|
@ -237,7 +237,7 @@ function onOpen(openInfo) {
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||||
CONFIG.arming_disabled = true;
|
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'));
|
GUI.log(chrome.i18n.getMessage('armingDisabled'));
|
||||||
|
|
||||||
finishOpen();
|
finishOpen();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue