diff options
author | Ryan <fauxpark@gmail.com> | 2023-07-06 18:48:02 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 09:48:02 +0100 |
commit | 87b11345a55d076966846d87b60d0f315b8bb984 (patch) | |
tree | a64503358d5f30b55a722b882eebaf1b60b03e1f /layouts/community/ergodox/colemak_code_friendly/keymap.c | |
parent | 928e03e8d669cb35a96c2aa4a09012c527b27892 (diff) |
Get rid of `USB_LED_CAPS_LOCK` (#21436)
Diffstat (limited to 'layouts/community/ergodox/colemak_code_friendly/keymap.c')
-rw-r--r-- | layouts/community/ergodox/colemak_code_friendly/keymap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/layouts/community/ergodox/colemak_code_friendly/keymap.c b/layouts/community/ergodox/colemak_code_friendly/keymap.c index ae5bdcc5b8..d9e3c9fa61 100644 --- a/layouts/community/ergodox/colemak_code_friendly/keymap.c +++ b/layouts/community/ergodox/colemak_code_friendly/keymap.c @@ -310,9 +310,6 @@ void matrix_init_user(void) { void matrix_scan_user(void) { uint8_t layer = get_highest_layer(layer_state); - //led 1, RED, Caps-Lock ON - //if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ergodox_right_led_1_on(); - //led 2, GREEN if (layer == LAYER_NUM) ergodox_right_led_2_on(); @@ -327,9 +324,10 @@ void matrix_scan_user(void) { }; // Runs constantly in the background, in a loop. -void led_set_user(uint8_t usb_led) { - if (usb_led & (1<<USB_LED_CAPS_LOCK)) +bool led_update_user(led_t led_state) { + if (led_state.caps_lock) ergodox_right_led_1_on(); else ergodox_right_led_1_off(); + return false; } |