diff --git a/locales/en/messages.json b/locales/en/messages.json index 790f707c..7491988b 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -1550,6 +1550,9 @@ "portsFunction_RUNCAM_DEVICE_CONTROL": { "message": "Camera (RunCam Protocol)" }, + "portsFunction_FRSKY_OSD": { + "message": "OSD (FrSky Protocol)" + }, "pidTuningProfileOption": { "message": "Profile $1" }, diff --git a/src/js/msp/MSPHelper.js b/src/js/msp/MSPHelper.js index c0642b6c..fdbb594a 100644 --- a/src/js/msp/MSPHelper.js +++ b/src/js/msp/MSPHelper.js @@ -24,7 +24,8 @@ function MspHelper () { 'TELEMETRY_IBUS': 12, 'IRC_TRAMP': 13, 'RUNCAM_DEVICE_CONTROL': 14, // support communitate with RunCam Device - 'LIDAR_TF': 15 + 'LIDAR_TF': 15, + 'FRSKY_OSD': 16, }; self.REBOOT_TYPES = { diff --git a/src/js/tabs/ports.js b/src/js/tabs/ports.js index dbbdcd31..41595145 100644 --- a/src/js/tabs/ports.js +++ b/src/js/tabs/ports.js @@ -53,6 +53,10 @@ TABS.ports.initialize = function (callback, scrollPosition) { functionRules.push({ name: 'LIDAR_TF', groups: ['peripherals'], maxPorts: 1 }); } + if (semver.gte(CONFIG.apiVersion, API_VERSION_1_43)) { + functionRules.push({ name: 'FRSKY_OSD', groups: ['peripherals'], maxPorts: 1 }); + } + for (var i = 0; i < functionRules.length; i++) { functionRules[i].displayName = i18n.getMessage('portsFunction_' + functionRules[i].name); }