1
0
Fork 0
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:
Mr D - RC 2024-11-10 15:41:21 +00:00
parent d48adcebd3
commit 16a0bf9e1b

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