1
0
Fork 0
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:
Darren Lines 2022-08-13 11:57:34 +01:00
parent 57cff5ccfe
commit e75204c96d

View file

@ -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;
}