mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +03:00
Added DSHOT beacon configuration
This commit is contained in:
parent
2a002b97ff
commit
a204d730bb
5 changed files with 96 additions and 2 deletions
|
@ -602,6 +602,9 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
|
||||
case MSPCodes.MSP_BEEPER_CONFIG:
|
||||
BEEPER_CONFIG.beepers.setMask(data.readU32());
|
||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
BEEPER_CONFIG.dshotBeaconTone = data.readU8();
|
||||
}
|
||||
break;
|
||||
|
||||
case MSPCodes.MSP_BOARD_ALIGNMENT_CONFIG:
|
||||
|
@ -1201,6 +1204,9 @@ MspHelper.prototype.crunch = function(code) {
|
|||
case MSPCodes.MSP_SET_BEEPER_CONFIG:
|
||||
var beeperMask = BEEPER_CONFIG.beepers.getMask();
|
||||
buffer.push32(beeperMask);
|
||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
buffer.push8(BEEPER_CONFIG.dshotBeaconTone );
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP_SET_MIXER_CONFIG:
|
||||
buffer.push8(MIXER_CONFIG.mixer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue