feat: H7 support (#5738)
Co-authored-by: Richard Li <richard.li@ces.hk> Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
Richard Li
philmoz
raphaelcoeffic
parent
5a15ffb017
commit
3d25c2a0f8
@@ -628,19 +628,19 @@ PACK(struct CustomScreenData {
|
||||
#endif
|
||||
|
||||
struct RGBLedColor {
|
||||
uint8_t r;
|
||||
uint8_t g;
|
||||
uint8_t b;
|
||||
uint8_t r;
|
||||
uint8_t g;
|
||||
uint8_t b;
|
||||
|
||||
uint32_t getColor() {
|
||||
return ((r << 16) + (g << 8) + b);
|
||||
}
|
||||
uint32_t getColor() {
|
||||
return ((r << 16) + (g << 8) + b);
|
||||
}
|
||||
|
||||
void setColor(uint32_t color) {
|
||||
r = color >> 16;
|
||||
g = color >> 8;
|
||||
b = color;
|
||||
}
|
||||
void setColor(uint32_t color) {
|
||||
r = color >> 16;
|
||||
g = color >> 8;
|
||||
b = color;
|
||||
}
|
||||
};
|
||||
|
||||
#if defined(FUNCTION_SWITCHES_RGB_LEDS)
|
||||
@@ -655,7 +655,7 @@ struct RGBLedColor {
|
||||
uint16_t functionSwitchConfig; \
|
||||
uint16_t functionSwitchGroup; \
|
||||
uint16_t functionSwitchStartConfig; \
|
||||
uint8_t functionSwitchLogicalState; \
|
||||
uint8_t functionSwitchLogicalState; \
|
||||
char switchNames[NUM_FUNCTIONS_SWITCHES][LEN_SWITCH_NAME]; \
|
||||
FUNCTION_SWITCHS_RGB_LEDS_FIELDS
|
||||
#else
|
||||
@@ -973,12 +973,8 @@ PACK(struct RadioData {
|
||||
|
||||
char ownerRegistrationID[PXX2_LEN_REGISTRATION_ID];
|
||||
|
||||
#if defined(ROTARY_ENCODER_NAVIGATION) && !defined(USE_HATS_AS_KEYS)
|
||||
CUST_ATTR(rotEncDirection, r_rotEncDirection, nullptr);
|
||||
NOBACKUP(uint8_t rotEncMode:3);
|
||||
#else
|
||||
NOBACKUP(uint8_t rotEncModeSpare:3 SKIP);
|
||||
#endif
|
||||
|
||||
NOBACKUP(int8_t uartSampleMode:2); // See UartSampleModes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user