mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Add extra MSP commands to allow settings to be made via a GUI in
addition to setting via the CLI. Note: MSP_CONFIG from baseflight bc68d89983d762d35cc1cf5e3fa0c2cf03287b70 will not be supported because more specific commands exist in cleanflight. MSP_MISC and MSP_CONFIG are good examples of single responsibility violations.
This commit is contained in:
parent
afb77484ea
commit
6f3aa6fb86
10 changed files with 240 additions and 46 deletions
|
@ -47,6 +47,12 @@ typedef enum {
|
|||
LED_FUNCTION_THROTTLE = (1 << 10)
|
||||
} ledFlag_e;
|
||||
|
||||
#define LED_DIRECTION_BIT_OFFSET 0
|
||||
#define LED_DIRECTION_MASK 0x3F
|
||||
#define LED_FUNCTION_BIT_OFFSET 6
|
||||
#define LED_FUNCTION_MASK 0x7C0
|
||||
|
||||
|
||||
typedef struct ledConfig_s {
|
||||
uint8_t xy; // see LED_X/Y_MASK defines
|
||||
uint16_t flags; // see ledFlag_e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue