diff options
author | Darren Lines <darren@darrenlines.uk> | 2022-08-13 13:57:34 +0300 |
---|---|---|
committer | Darren Lines <darren@darrenlines.uk> | 2022-08-13 13:57:34 +0300 |
commit | e75204c96d941aaf07733477ab9c8152ba2cb0c9 (patch) | |
tree | 006faf021bca05b2e00886e3e1fc36387b56243c | |
parent | 57cff5ccfe8a1a79a15d4d404016006f9a2cfd87 (diff) |
Update peripherals.jsMrD_Change-POSHOLD-text-to-LOITER-on-fixed-wing-platforms
OK, the original part was done at 4am, because I couldn't sleep. It works now.
-rw-r--r-- | js/peripherals.js | 18 |
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 |