mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 06:15:13 +03:00
Fixed reverse motor direction compatibility with 3.1
This commit is contained in:
parent
9d240fb575
commit
f30826877f
3 changed files with 126 additions and 6 deletions
|
@ -557,7 +557,9 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
|
||||
case MSPCodes.MSP_MIXER_CONFIG:
|
||||
MIXER_CONFIG.mixer = data.readU8();
|
||||
MIXER_CONFIG.reverseMotorDir = data.readU8();
|
||||
if (semver.lt(CONFIG.apiVersion, "1.36.0")) {
|
||||
MIXER_CONFIG.reverseMotorDir = data.readU8();
|
||||
}
|
||||
break;
|
||||
|
||||
case MSPCodes.MSP_FEATURE_CONFIG:
|
||||
|
@ -1161,7 +1163,9 @@ MspHelper.prototype.crunch = function(code) {
|
|||
break;
|
||||
case MSPCodes.MSP_SET_MIXER_CONFIG:
|
||||
buffer.push8(MIXER_CONFIG.mixer)
|
||||
.push8(MIXER_CONFIG.reverseMotorDir);
|
||||
if (semver.lt(CONFIG.apiVersion, "1.36.0")) {
|
||||
buffer.push8(MIXER_CONFIG.reverseMotorDir);
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP_SET_BOARD_ALIGNMENT_CONFIG:
|
||||
buffer.push16(BOARD_ALIGNMENT_CONFIG.roll)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue