mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +03:00
Fix MSP_SERVO_CONFIGURATIONS and MSP_SET_SERVO_CONFIGURATION handling for API version >= 1.33.0
Trivial bug. Should have been caught with simple testing.
This commit is contained in:
parent
f34d97d6dd
commit
4734aaa637
1 changed files with 1 additions and 3 deletions
|
@ -416,8 +416,6 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
'max': data.readU16(),
|
||||
'middle': data.readU16(),
|
||||
'rate': data.read8(),
|
||||
'angleAtMin': -90,
|
||||
'angleAtMax': 90,
|
||||
'indexOfChannelToForward': data.readU8(),
|
||||
'reversedInputSources': data.readU32()
|
||||
};
|
||||
|
@ -1614,7 +1612,7 @@ MspHelper.prototype.sendServoConfigurations = function(onCompleteCallback) {
|
|||
.push16(servoConfiguration.middle)
|
||||
.push8(servoConfiguration.rate);
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.33.0")) {
|
||||
if (semver.lt(CONFIG.apiVersion, "1.33.0")) {
|
||||
buffer.push8(servoConfiguration.angleAtMin)
|
||||
.push8(servoConfiguration.angleAtMax);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue