mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Store GPS protocol in the wizard state
This commit is contained in:
parent
7b63e06521
commit
a90d4634d5
2 changed files with 10 additions and 17 deletions
|
@ -23,19 +23,19 @@ var wizardSaveFramework = (function () {
|
|||
|
||||
let gpsBit = FC.getFeatures().find( feature => feature.name === 'GPS' ).bit;
|
||||
|
||||
if (config.value == '-1') {
|
||||
if (config.value.port == '-1') {
|
||||
features.unset(gpsBit);
|
||||
} else {
|
||||
features.set(gpsBit);
|
||||
}
|
||||
|
||||
features.execute(callback);
|
||||
break;
|
||||
case 'gpsBaud':
|
||||
console.log(config);
|
||||
serialPortHelper.set(config.value.port, 'GPS', config.value.baud);
|
||||
mspHelper.saveSerialPorts(function () {
|
||||
features.execute(callback);
|
||||
});
|
||||
break;
|
||||
case 'gpsProtocol':
|
||||
console.log(config);
|
||||
mspHelper.setSetting('gps_provider', config.value, callback);
|
||||
break;
|
||||
default:
|
||||
callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue