mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +03:00
Add version check to set_mode_ranges
This commit is contained in:
parent
6618ef5fb8
commit
fc8618828f
1 changed files with 6 additions and 3 deletions
|
@ -1935,9 +1935,12 @@ MspHelper.prototype.sendModeRanges = function(onCompleteCallback) {
|
||||||
.push8(modeRange.id)
|
.push8(modeRange.id)
|
||||||
.push8(modeRange.auxChannelIndex)
|
.push8(modeRange.auxChannelIndex)
|
||||||
.push8((modeRange.range.start - 900) / 25)
|
.push8((modeRange.range.start - 900) / 25)
|
||||||
.push8((modeRange.range.end - 900) / 25)
|
.push8((modeRange.range.end - 900) / 25);
|
||||||
.push8(modeRangeExtra.modeLogic)
|
|
||||||
.push8(modeRangeExtra.linkedTo);
|
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
||||||
|
buffer.push8(modeRangeExtra.modeLogic)
|
||||||
|
.push8(modeRangeExtra.linkedTo);
|
||||||
|
}
|
||||||
|
|
||||||
// prepare for next iteration
|
// prepare for next iteration
|
||||||
modeRangeIndex++;
|
modeRangeIndex++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue