1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

OSD tab removed on < 1.5 firmware

This commit is contained in:
Pawel Spychalski (DzikuVx) 2016-11-23 14:25:37 +01:00 committed by Pawel Spychalski (DzikuVx)
parent 25c8a6f61c
commit 3311093cb1
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
.DS_store
nbproject/
node_modules/
npm-debug.log
.idea/
npm-debug.log
inav-configurator.iml

View file

@ -218,8 +218,8 @@ function onOpen(openInfo) {
CONFIGURATOR.connectionValid = true;
GUI.allowedTabs = GUI.defaultAllowedTabsWhenConnected.slice();
//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")) {
if (semver.lt(CONFIG.flightControllerVersion, "1.5.0")) {
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('osd'), 1);
}