1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

request and store MSP_BOXIDS (for reasons unknown at the moment)

This commit is contained in:
cTn 2014-07-11 17:52:56 +02:00
parent 930a7f482f
commit 8a52551671
3 changed files with 11 additions and 2 deletions

View file

@ -342,7 +342,11 @@ MSP.process_data = function(code, message_buffer, message_length) {
console.log(data);
break;
case MSP_codes.MSP_BOXIDS:
console.log(data);
AUX_CONFIG_IDS = []; // empty the array as new data is coming in
for (var i = 0; i < data.byteLength; i++) {
AUX_CONFIG_IDS.push(data.getUint8(i));
}
break;
case MSP_codes.MSP_SERVO_CONF:
SERVO_CONFIG = []; // empty the array as new data is coming in