mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Enable virtual pitot when a GNSS module is setup in the wizard
Fixes https://github.com/iNavFlight/inav-configurator/issues/2231
This commit is contained in:
parent
d48adcebd3
commit
16a0bf9e1b
1 changed files with 9 additions and 1 deletions
|
@ -31,7 +31,7 @@ var wizardSaveFramework = (function () {
|
|||
|
||||
serialPortHelper.set(config.value.port, 'GPS', config.value.baud);
|
||||
mspHelper.saveSerialPorts(function () {
|
||||
features.execute(callback);
|
||||
features.execute(self.enableVirtulaPitot(config, callback));
|
||||
});
|
||||
break;
|
||||
case 'gpsProtocol':
|
||||
|
@ -43,6 +43,14 @@ var wizardSaveFramework = (function () {
|
|||
}
|
||||
};
|
||||
|
||||
self.enableVirtulaPitot = function (config, callback) {
|
||||
if (config.value.port != '-1') {
|
||||
mspHelper.setSetting('pitot_hardware', "VIRTUAL", callback);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
self.handleSetting = function (configs, finalCallback) {
|
||||
|
||||
if (configs.length > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue