Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Lines <darren@darrenlines.uk>2022-08-13 13:57:34 +0300
committerDarren Lines <darren@darrenlines.uk>2022-08-13 13:57:34 +0300
commite75204c96d941aaf07733477ab9c8152ba2cb0c9 (patch)
tree006faf021bca05b2e00886e3e1fc36387b56243c
parent57cff5ccfe8a1a79a15d4d404016006f9a2cfd87 (diff)
OK, the original part was done at 4am, because I couldn't sleep. It works now.
-rw-r--r--js/peripherals.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/peripherals.js b/js/peripherals.js
index a790d38b..75eb3038 100644
--- a/js/peripherals.js
+++ b/js/peripherals.js
@@ -16,11 +16,6 @@ function isPeripheralSelected(peripheralName) {
function adjustBoxNameIfPeripheralWithModeID(modeId, defaultName) {
if (isPeripheralSelected("RUNCAM_DEVICE_CONTROL")) {
switch (modeId) {
- case 11: // NAV POSHOLD
- if (FC.isAirplane()) {
- return "LOITER";
- }
- break;
case 39: // BOXCAMERA1
return "CAMERA WI-FI";
case 40: // BOXCAMERA2
@@ -28,10 +23,15 @@ function adjustBoxNameIfPeripheralWithModeID(modeId, defaultName) {
case 41: // BOXCAMERA3
return "CAMERA CHANGE MODE";
default:
- return defaultName;
+ break;
}
- }
-
- return defaultName;
+ }
+ if (modeId === 11) {
+ if (FC.isAirplane()) {
+ return "NAV LOITER";
+ }
+ }
+
+ return defaultName;
} \ No newline at end of file