mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 08:45:28 +03:00
Fix access to RC_YAW_EXPO
in MSP_RC_TUNING
data packet
This commit is contained in:
parent
ab883c6dc5
commit
322b7c1085
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue