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:
parent
10780f3f59
commit
ad94f9f275
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue