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:
parent
c1fe0ede87
commit
48c67874f9
2 changed files with 11 additions and 0 deletions
3
js/fc.js
3
js/fc.js
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue