From 09babcec31418a961d1523b9e097c7035ab573de Mon Sep 17 00:00:00 2001 From: HThuren Date: Tue, 10 Oct 2023 06:50:42 +0200 Subject: [PATCH] Resolved --- src/js/tabs/auxiliary.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/js/tabs/auxiliary.js b/src/js/tabs/auxiliary.js index 8deba2805ff..beee7e5eb2d 100644 --- a/src/js/tabs/auxiliary.js +++ b/src/js/tabs/auxiliary.js @@ -491,21 +491,7 @@ auxiliary.initialize = function (callback) { } hasUsedMode = true; } - /* - let hideUnused = hideUnusedModes && hasUsedMode; - // let hideNoFlight = hideNoFlightMode && hasUsedMode; - for (let i = 0; i < FC.AUX_CONFIG.length; i++) { - let modeElement = $(`#mode-${i}`); - if (modeElement.find(' .range').length == 0 && modeElement.find(' .link').length == 0) { - // unused mode - modeElement.toggle( ! hideUnused); - } - if( isFlightMode(FC.AUX_CONFIG[i])) { - // not flightMode - modeElement.toggle( ! (hideNoFlightMode && hideUnused)); - } - } - */ + let hideUnused = hideUnusedModes && hasUsedMode; let hideNoFlight = hideNoFlightMode && hasUsedMode; for (let i = 1; i < FC.AUX_CONFIG.length; i++) { // ARM has index 0 @@ -515,11 +501,12 @@ auxiliary.initialize = function (callback) { modeElement.toggle(!hideUnused); } - if( ! isFlightMode(FC.AUX_CONFIG[i])) { + if ( ! isFlightMode(FC.AUX_CONFIG[i])) { // not flightMode mode modeElement.toggle(!hideNoFlight); } } + auto_select_channel(FC.RC.channels, FC.RC.active_channels, FC.RSSI_CONFIG.channel); auxChannelCount = FC.RC.active_channels - 4;