summaryrefslogtreecommitdiff
path: root/keyboards/wilba_tech/wt_rgb_backlight.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/wilba_tech/wt_rgb_backlight.h')
-rw-r--r--keyboards/wilba_tech/wt_rgb_backlight.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.h b/keyboards/wilba_tech/wt_rgb_backlight.h
index 6484658866..529f84636a 100644
--- a/keyboards/wilba_tech/wt_rgb_backlight.h
+++ b/keyboards/wilba_tech/wt_rgb_backlight.h
@@ -37,6 +37,12 @@ typedef struct
uint8_t index;
} backlight_config_indicator;
+#if defined(RGB_BACKLIGHT_M6_B)
+#define RGB_BACKLIGHT_CUSTOM_COLORS_COUNT 6
+#elif defined(RGB_BACKLIGHT_M10_C)
+#define RGB_BACKLIGHT_CUSTOM_COLORS_COUNT 10
+#endif
+
typedef struct
{
bool use_split_backspace:1; // |
@@ -58,10 +64,10 @@ typedef struct
backlight_config_indicator layer_2_indicator; // 3 bytes
backlight_config_indicator layer_3_indicator; // 3 bytes
uint16_t alphas_mods[5]; // 10 bytes
-#if defined(RGB_BACKLIGHT_M6_B)
- HS custom_color[6]; // 12 bytes
+#if defined(RGB_BACKLIGHT_M6_B) || defined(RGB_BACKLIGHT_M10_C)
+ HS custom_color[RGB_BACKLIGHT_CUSTOM_COLORS_COUNT]; // 12 or 20 bytes
#endif
-} backlight_config; // = 31 bytes (M6-B = 43 bytes)
+} backlight_config; // = 31 bytes (M6-B = 43 bytes, M10-C 51 bytes)
void backlight_config_load(void);
void backlight_config_save(void);