Skip to content

Commit

Permalink
FIx missing crashflip arming disable flag (#4265)
Browse files Browse the repository at this point in the history
Add missing arming disable flag
  • Loading branch information
haslinghuis authored Dec 2, 2024
1 parent 43a94b5 commit e0c62d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/tabs/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FC from '../fc';
import MSP from '../msp';
import Model from '../model';
import MSPCodes from '../msp/MSPCodes';
import { API_VERSION_1_45, API_VERSION_1_46 } from '../data_storage';
import { API_VERSION_1_45, API_VERSION_1_46, API_VERSION_1_47 } from '../data_storage';
import { gui_log } from '../gui_log';
import $ from 'jquery';
import { ispConnected } from '../utils/connection';
Expand Down Expand Up @@ -240,6 +240,10 @@ setup.initialize = function (callback) {
disarmFlagElements.splice(disarmFlagElements.indexOf('RPMFILTER'), 1, 'DSHOT_TELEM');
}

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
disarmFlagElements.splice(disarmFlagElements.indexOf('MOTOR_PROTOCOL'), 0, 'CRASHFLIP');
}

// Arming allowed flag
arming_disable_flags_e.append('<span id="initialSetupArmingAllowed" i18n="initialSetupArmingAllowed" style="display: none;"></span>');

Expand Down

0 comments on commit e0c62d6

Please sign in to comment.