1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 04:45:18 +03:00

use FC version as condition to detect which is support rcsplit or not.

This commit is contained in:
azolyoung 2017-08-06 15:02:05 +08:00
parent 73f324e4c1
commit 02d4a8ae47
2 changed files with 2 additions and 4 deletions

View file

@ -20735,7 +20735,7 @@ TABS.ports = {};
TABS.ports.initialize = function (callback, scrollPosition) {
var board_definition = {};
var isSupportPeripherals = semver.gte(CONFIG.apiVersion, "1.27.0");
var isSupportPeripherals = semver.gte(CONFIG.flightControllerVersion, "1.7.3");
var functionRules = [
{name: 'MSP', groups: ['data', 'msp'], maxPorts: 2},
@ -20859,7 +20859,6 @@ TABS.ports.initialize = function (callback, scrollPosition) {
31: 'SOFTSERIAL2'
};
// if apiVersion < 1.27.0, than remove the peripherals column
if (!isSupportPeripherals) {
$('.peripherls-column').remove();
$('.functionsCell-peripherals').remove();