mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Merge pull request #5089 from basdelfos/msp-changes-bfc
BF 3.3 configurator changes
This commit is contained in:
commit
2fef637905
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,7 @@
|
|||
#include "config/feature.h"
|
||||
#include "pg/pg.h"
|
||||
#include "pg/pg_ids.h"
|
||||
#include "pg/beeper.h"
|
||||
|
||||
#include "drivers/accgyro/accgyro.h"
|
||||
#include "drivers/bus_i2c.h"
|
||||
|
@ -473,6 +474,7 @@ static bool mspCommonProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProce
|
|||
#ifdef BEEPER
|
||||
case MSP_BEEPER_CONFIG:
|
||||
sbufWriteU32(dst, getBeeperOffMask());
|
||||
sbufWriteU8(dst, beeperConfig()->dshotBeaconTone);
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
@ -1839,6 +1841,9 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
case MSP_SET_BEEPER_CONFIG:
|
||||
beeperOffClearAll();
|
||||
setBeeperOffMask(sbufReadU32(src));
|
||||
if (sbufBytesRemaining(src) >= 1) {
|
||||
beeperConfigMutable()->dshotBeaconTone = sbufReadU8(src);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue