1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

add MSP_SET_RCMAP to cruncher

This commit is contained in:
cTn 2014-09-19 16:11:26 +02:00
parent 4a00abd162
commit 5d9b28c5c7

View file

@ -624,6 +624,11 @@ MSP.crunch = function (code) {
buffer.push(highByte(AUX_CONFIG_values[i])); buffer.push(highByte(AUX_CONFIG_values[i]));
} }
break; break;
case MSP_codes.MSP_SET_RCMAP:
for (var i = 0; i < RC_MAP.length; i++) {
buffer.push(RC_MAP[i]);
}
break;
case MSP_codes.MSP_SET_ACC_TRIM: case MSP_codes.MSP_SET_ACC_TRIM:
buffer.push(lowByte(CONFIG.accelerometerTrims[0])); buffer.push(lowByte(CONFIG.accelerometerTrims[0]));
buffer.push(highByte(CONFIG.accelerometerTrims[0])); buffer.push(highByte(CONFIG.accelerometerTrims[0]));