From f5dc707302db76a6713a862259dd36ff54003a21 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sun, 1 Dec 2024 21:56:10 +0100 Subject: [PATCH] Add missing arming disable flag --- src/js/tabs/setup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/tabs/setup.js b/src/js/tabs/setup.js index 595992a839..367c8fed05 100644 --- a/src/js/tabs/setup.js +++ b/src/js/tabs/setup.js @@ -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'; @@ -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('');