mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Update peripherals.js
OK, the original part was done at 4am, because I couldn't sleep. It works now.
This commit is contained in:
parent
57cff5ccfe
commit
e75204c96d
1 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue