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

crude port

This commit is contained in:
Pawel Spychalski (DzikuVx) 2016-11-22 23:14:04 +01:00
parent 706cb4c36f
commit 25c8a6f61c
15 changed files with 50864 additions and 4 deletions

View file

@ -217,8 +217,10 @@ function onOpen(openInfo) {
// continue as usually
CONFIGURATOR.connectionValid = true;
GUI.allowedTabs = GUI.defaultAllowedTabsWhenConnected.slice();
if (semver.lt(CONFIG.apiVersion, "1.4.0")) {
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('led_strip'), 1);
//TODO here we can remove led_strip tab from NAZE and CC3D at least!
//FIXME add real version here
if (false && semver.lt(CONFIG.flightControllerVersion, "1.4.0")) {
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('osd'), 1);
}
onConnect();