1
0
Fork 0
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:
Michael Keller 2018-02-02 00:51:45 +13:00 committed by GitHub
commit 2fef637905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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