1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

Merge pull request #2240 from iNavFlight/MrD_Enable-virtual-pitot-of-GPS-seupt-in-wizard

Enable virtual pitot when a GNSS module is setup in the wizard
This commit is contained in:
b14ckyy 2024-11-15 20:36:27 +01:00 committed by GitHub
commit 1a291dc6bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {