aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--users/mtdjr/mtdjr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/users/mtdjr/mtdjr.c b/users/mtdjr/mtdjr.c
index ac5c5911f..d8d6871a1 100644
--- a/users/mtdjr/mtdjr.c
+++ b/users/mtdjr/mtdjr.c
@@ -137,21 +137,27 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
137}; 137};
138 138
139uint32_t layer_state_set_user(uint32_t state) { 139uint32_t layer_state_set_user(uint32_t state) {
140#ifdef RGBLIGHT_ENABLE
141 switch (biton32(state)) { 140 switch (biton32(state)) {
142 case _RAISE: 141 case _RAISE:
142 #ifdef RGBLIGHT_ENABLE
143 rgblight_sethsv_noeeprom (240, 255, 255); 143 rgblight_sethsv_noeeprom (240, 255, 255);
144 #endif
144 break; 145 break;
145 case _LOWER: 146 case _LOWER:
147 #ifdef RGBLIGHT_ENABLE
146 rgblight_sethsv_noeeprom (0, 255, 255); 148 rgblight_sethsv_noeeprom (0, 255, 255);
149 #endif
147 break; 150 break;
148 case _ADJUST: 151 case _ADJUST:
152 #ifdef RGBLIGHT_ENABLE
149 rgblight_sethsv_noeeprom (0, 0, 255); 153 rgblight_sethsv_noeeprom (0, 0, 255);
154 #endif
150 break; 155 break;
151 default: 156 default:
157 #ifdef RGBLIGHT_ENABLE
152 rgblight_sethsv_noeeprom (RGB_HUE, 255, 255); 158 rgblight_sethsv_noeeprom (RGB_HUE, 255, 255);
159 #endif
153 break; 160 break;
154 } 161 }
155 return state; 162 return state;
156#endif
157} 163}