1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-19 14:25:13 +03:00

presets removed from < 1.6 firmware

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-01-10 16:28:08 +01:00
parent ea3c972a49
commit a734264d87

View file

@ -260,6 +260,13 @@ function onOpen(openInfo) {
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('osd'), 1);
}
/*
* Remove Presets on older than 1.6
*/
if (semver.lt(CONFIG.flightControllerVersion, "1.6.0")) {
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('profiles'), 1);
}
onConnect();
$('#tabs ul.mode-connected .tab_setup a').click();