1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 20:10:11 +03:00

Fix 2.1 compatibility issues

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-05-25 13:51:08 +02:00
parent 10780f3f59
commit ad94f9f275
2 changed files with 7 additions and 0 deletions

View file

@ -2386,6 +2386,8 @@ var mspHelper = (function (gui) {
self.loadLogicConditions = function (callback) {
if (semver.gte(CONFIG.flightControllerVersion, "2.2.0")) {
MSP.send_message(MSPCodes.MSP2_INAV_LOGIC_CONDITIONS, false, false, callback);
} else {
callback();
}
}

View file

@ -78,6 +78,11 @@ var Settings = (function () {
var settingName = input.data('setting');
var setting = input.data('setting-info');
var value;
if (typeof setting == 'undefined') {
return null;
}
if (setting.table) {
if (input.attr('type') == 'checkbox') {
value = input.prop('checked') ? 1 : 0;