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:
commit
1a291dc6bc
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);
|
serialPortHelper.set(config.value.port, 'GPS', config.value.baud);
|
||||||
mspHelper.saveSerialPorts(function () {
|
mspHelper.saveSerialPorts(function () {
|
||||||
features.execute(callback);
|
features.execute(self.enableVirtulaPitot(config, callback));
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'gpsProtocol':
|
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) {
|
self.handleSetting = function (configs, finalCallback) {
|
||||||
|
|
||||||
if (configs.length > 0) {
|
if (configs.length > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue