From 1b22a924a3b6fd127ac33c702a25821642e1f66f Mon Sep 17 00:00:00 2001
From: azol <75358050@qq.com>
Date: Thu, 19 Oct 2017 17:23:52 +0800
Subject: [PATCH] Change 'RunCam Split' to 'RunCam Device'
---
_locales/en/messages.json | 4 ++--
js/msp/MSPHelper.js | 2 +-
js/peripherals.js | 2 +-
tabs/ports.js | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 7ed38210..afc0df0e 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -938,8 +938,8 @@
"portsFunction_IRC_TRAMP": {
"message": "IRC Tramp"
},
- "portsFunction_RUNCAM_SPLIT_CONTROL": {
- "message": "RunCam Split"
+ "portsFunction_RUNCAM_DEVICE_CONTROL": {
+ "message": "RunCam Device"
},
"pidTuningUpgradeFirmwareToChangePidController": {
"message": "Changing PID controller disabled - you can change it via the CLI. You have firmware with API version $1, but this functionality requires requires $2."
diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js
index 17773738..54983b68 100644
--- a/js/msp/MSPHelper.js
+++ b/js/msp/MSPHelper.js
@@ -24,7 +24,7 @@ function MspHelper () {
'TBS_SMARTAUDIO': 11,
'TELEMETRY_IBUS': 12,
'IRC_TRAMP': 13,
- 'RUNCAM_SPLIT_CONTROL': 14 // support communitate with RunCam Split
+ 'RUNCAM_DEVICE_CONTROL': 14 // support communitate with RunCam Device
};
}
diff --git a/js/peripherals.js b/js/peripherals.js
index 0ce36509..b093af2b 100644
--- a/js/peripherals.js
+++ b/js/peripherals.js
@@ -14,7 +14,7 @@ function isPeripheralSelected(peripheralName) {
// Adjust the real name for a modeId. Useful if it belongs to a peripheral
function adjustBoxNameIfPeripheralWithModeID(modeId, defaultName) {
- if (isPeripheralSelected("RUNCAM_SPLIT_CONTROL")) {
+ if (isPeripheralSelected("RUNCAM_DEVICE_CONTROL")) {
switch (modeId) {
case 32: // BOXCAMERA1
return chrome.i18n.getMessage('modeCameraWifi');
diff --git a/tabs/ports.js b/tabs/ports.js
index c6ea8ad0..3868fabc 100644
--- a/tabs/ports.js
+++ b/tabs/ports.js
@@ -44,7 +44,7 @@ TABS.ports.initialize = function (callback, scrollPosition) {
}
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
- functionRules.push({ name: 'RUNCAM_SPLIT_CONTROL', groups: ['peripherals'], maxPorts: 1 });
+ functionRules.push({ name: 'RUNCAM_DEVICE_CONTROL', groups: ['peripherals'], maxPorts: 1 });
}
for (var i = 0; i < functionRules.length; i++) {