mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 12:55:13 +03:00
Correctly set GPS feature flag
This commit is contained in:
parent
5c7a6be54e
commit
7b63e06521
2 changed files with 4 additions and 5 deletions
|
@ -20,19 +20,16 @@ var wizardSaveFramework = (function () {
|
|||
mspHelper.setSetting('serialrx_provider', config.value, callback);
|
||||
break;
|
||||
case 'gpsPort':
|
||||
console.log(config);
|
||||
|
||||
let gpsBit = FC.getFeatures().find( feature => feature.name === 'GPS' ).bit;
|
||||
|
||||
if (config.value == '-1') {
|
||||
features.unset(gpsBit);
|
||||
|
||||
console.log('Unset GPS');
|
||||
|
||||
} else {
|
||||
features.set(gpsBit);
|
||||
console.log('Set GPS');
|
||||
}
|
||||
|
||||
features.execute(callback);
|
||||
break;
|
||||
case 'gpsBaud':
|
||||
console.log(config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue