Fix access to `RC_YAW_EXPO` in `MSP_RC_TUNING` data packet
parent
ab883c6dc5
commit
322b7c1085
|
@ -308,7 +308,8 @@ var MSP = {
|
|||
RC_tuning.throttle_MID = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
||||
RC_tuning.throttle_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
||||
if (semver.gte(CONFIG.apiVersion, "1.7.0")) {
|
||||
RC_tuning.dynamic_THR_breakpoint = data.getUint16(offset++, 1);
|
||||
RC_tuning.dynamic_THR_breakpoint = data.getUint16(offset, 1);
|
||||
offset += 2; // point past 16 bit (2 bytes)
|
||||
}
|
||||
if (semver.gte(CONFIG.apiVersion, "1.10.0")) {
|
||||
RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
||||
|
|
Loading…
Reference in New Issue