summaryrefslogtreecommitdiffstats
path: root/users/curry/rgb_lighting_user.c
diff options
context:
space:
mode:
authorAllen Choi <37539914+Thunderbird2086@users.noreply.github.com>2022-04-19 20:00:01 +0900
committerGitHub <noreply@github.com>2022-04-19 21:00:01 +1000
commit9ead40db0cde5568b4be4b199615cc284ed4e7a8 (patch)
treeed12bed724202816d5874d28592c3cf739b4c22d /users/curry/rgb_lighting_user.c
parent1acb37db7fc28684785ee57d68452d127790c1db (diff)
Fix broken build for users/curry (#16492)
Diffstat (limited to 'users/curry/rgb_lighting_user.c')
-rw-r--r--users/curry/rgb_lighting_user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/curry/rgb_lighting_user.c b/users/curry/rgb_lighting_user.c
index 25e1ce0104..b8d519feca 100644
--- a/users/curry/rgb_lighting_user.c
+++ b/users/curry/rgb_lighting_user.c
@@ -304,15 +304,21 @@ layer_state_t layer_state_set_rgb(layer_state_t state) {
{
uint8_t mode = get_highest_layer(state) == _MODS ? RGBLIGHT_MODE_BREATHING : RGBLIGHT_MODE_STATIC_LIGHT;
switch (get_highest_layer(default_layer_state)) {
+#if defined(ENABLE_COLEMAK)
case _COLEMAK:
rgblight_set_hsv_and_mode(HSV_MAGENTA, mode);
break;
+#endif
+#if defined(ENABLE_DVORAK)
case _DVORAK:
rgblight_set_hsv_and_mode(HSV_SPRINGGREEN, mode);
break;
+#endif
+#if defined(ENABLE_WORKMAN)
case _WORKMAN:
rgblight_set_hsv_and_mode(HSV_GOLDENROD, mode);
break;
+#endif
default:
rgblight_set_hsv_and_mode(HSV_CYAN, mode);
break;