summaryrefslogtreecommitdiffstats
path: root/users/spidey3
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-07-03 04:24:22 +1000
committerGitHub <noreply@github.com>2023-07-02 19:24:22 +0100
commit7ff80a57cbe57e888646c3b90e2f4f9dea977156 (patch)
tree9917aa79a37e2c51124b63af094da8a96591313c /users/spidey3
parent9dbad1fa5c068c42f0e948242a2f1922824fbb22 (diff)
Get rid of `USB_LED_SCROLL_LOCK` (#21405)
Diffstat (limited to 'users/spidey3')
-rw-r--r--users/spidey3/layer_rgb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/users/spidey3/layer_rgb.c b/users/spidey3/layer_rgb.c
index cff20898cd..be76788d21 100644
--- a/users/spidey3/layer_rgb.c
+++ b/users/spidey3/layer_rgb.c
@@ -73,9 +73,9 @@ const rgblight_segment_t *const PROGMEM _rgb_layers[] = {
[LAYER_OFFSET + _NUMPAD] = _layer1_layer,
[LAYER_OFFSET + _FN] = _layer2_layer,
- [LOCK_OFFSET + USB_LED_NUM_LOCK] = _numlock_layer,
- [LOCK_OFFSET + USB_LED_CAPS_LOCK] = _capslock_layer,
- [LOCK_OFFSET + USB_LED_SCROLL_LOCK] = _scrolllock_layer,
+ [LOCK_OFFSET + 0] = _numlock_layer,
+ [LOCK_OFFSET + 1] = _capslock_layer,
+ [LOCK_OFFSET + 2] = _scrolllock_layer,
[MISC_OFFSET + 0] = _gflock_layer,
[MISC_OFFSET + 1] = _glyphreplace_layer,
@@ -374,9 +374,9 @@ layer_state_t layer_state_set_user_rgb(layer_state_t state) {
}
bool led_update_user_rgb(led_t led_state) {
- rgblight_set_layer_state(LOCK_OFFSET + USB_LED_NUM_LOCK, led_state.num_lock);
- rgblight_set_layer_state(LOCK_OFFSET + USB_LED_CAPS_LOCK, led_state.caps_lock);
- rgblight_set_layer_state(LOCK_OFFSET + USB_LED_SCROLL_LOCK, led_state.scroll_lock);
+ rgblight_set_layer_state(LOCK_OFFSET + 0, led_state.num_lock);
+ rgblight_set_layer_state(LOCK_OFFSET + 1, led_state.caps_lock);
+ rgblight_set_layer_state(LOCK_OFFSET + 2, led_state.scroll_lock);
return true;
}