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

Servo output in Servo tab

This commit is contained in:
Pawel Spychalski (DzikuVx) 2018-05-24 20:28:04 +02:00
parent 3b4c4f00cc
commit f5e60cc40e
7 changed files with 115 additions and 8 deletions

View file

@ -1339,9 +1339,9 @@ var mspHelper = (function (gui) {
console.log('OSD preferences saved');
break;
case MSPCodes.MSPV2_INAV_OUTPUT_MAPPING:
OUTPUT_MAPPING = [];
OUTPUT_MAPPING.flush();
for (i = 0; i < data.byteLength; ++i)
OUTPUT_MAPPING.push(data.getUint8(i));
OUTPUT_MAPPING.put(data.getUint8(i));
break;
default:
console.log('Unknown code detected: ' + dataHandler.code);
@ -2546,7 +2546,7 @@ var mspHelper = (function (gui) {
if (semver.gte(CONFIG.flightControllerVersion, '2.0.0'))
MSP.send_message(MSPCodes.MSPV2_INAV_OUTPUT_MAPPING, false, false, callback);
else {
OUTPUT_MAPPING = [];
OUTPUT_MAPPING.flush();
return false;
}
};