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

old mixer section hiden on compatible FC version

This commit is contained in:
Pawel Spychalski (DzikuVx) 2018-03-29 18:20:29 +02:00
parent c1fe0ede87
commit 48c67874f9
2 changed files with 11 additions and 0 deletions

View file

@ -60,6 +60,9 @@ var FC = {
isRatesInDps: function () {
return !!(typeof CONFIG != "undefined" && CONFIG.flightControllerIdentifier == "INAV" && semver.gt(CONFIG.flightControllerVersion, "1.1.0"));
},
isNewMixer: function () {
return !!(typeof CONFIG != "undefined" && semver.gte(CONFIG.flightControllerVersion, "1.9.1"));
},
resetState: function () {
SENSOR_STATUS = {
isHardwareHealthy: 0,

View file

@ -758,6 +758,14 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
}
$('#batterycurrent').val([ANALOG.amperage.toFixed(2)]);
}, 100, true); // 10 fps
/*
* Hide mixer section
*/
if (FC.isNewMixer()) {
$('.mixer').addClass("is-hidden");
}
GUI.content_ready(callback);
}
};