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

Finish receiver wizard page

This commit is contained in:
Pawel Spychalski (DzikuVx) 2024-05-17 11:04:18 +02:00
parent 6a514920fa
commit 7e66940d02
3 changed files with 10 additions and 3 deletions

View file

@ -9,12 +9,19 @@ var wizardSaveFramework = (function () {
let self = {};
self.saveSetting = function (config, callback) {
/*
serialrx_provider to 2
serialrx_provider to 6
*/
switch (config.name) {
case 'receiverPort':
serialPortHelper.set(config.value, 'RX_SERIAL', null);
mspHelper.saveSerialPorts(callback);
break;
case 'receiverProtocol':
mspHelper.setSetting('serialrx_provider', config.value, callback);
break;
default:
callback();
break;