1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

Simplify serial config loading

This commit is contained in:
Pawel Spychalski (DzikuVx) 2024-03-24 13:37:13 +01:00
parent f93fba9c36
commit a65ff23f8d
2 changed files with 11 additions and 10 deletions

View file

@ -3539,6 +3539,13 @@ var mspHelper = (function (gui) {
MSP.send_message(MSPCodes.MSP2_INAV_PROGRAMMING_PID_STATUS, false, false, callback);
};
self.loadSerialPorts = function (callback) {
MSP.send_message(MSPCodes.MSP2_CF_SERIAL_CONFIG, false, false, callback);
};
self.saveSerialPorts = function (callback) {
MSP.send_message(MSPCodes.MSP2_SET_CF_SERIAL_CONFIG, mspHelper.crunch(MSPCodes.MSP2_SET_CF_SERIAL_CONFIG), false, callback);
};
return self;
})(GUI);