diff options
author | fauxpark <fauxpark@gmail.com> | 2022-09-30 05:19:53 +1000 |
---|---|---|
committer | fauxpark <fauxpark@gmail.com> | 2022-09-30 05:19:53 +1000 |
commit | dbb70871fcb98b98dd5544b53f4083dfc2aeefff (patch) | |
tree | 75839f796a26c2f2908b584e3ca0a35457f83fe2 /keyboards/keychron/q0/q0.c | |
parent | dbe214c3268d9a316a137471a7679f7e45046e49 (diff) | |
parent | 45b5ed5c6e1ecdf95e9ce0523a8ff49d45b8822f (diff) |
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'keyboards/keychron/q0/q0.c')
-rw-r--r-- | keyboards/keychron/q0/q0.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/keychron/q0/q0.c b/keyboards/keychron/q0/q0.c index c43157ac68..d17ab77f47 100644 --- a/keyboards/keychron/q0/q0.c +++ b/keyboards/keychron/q0/q0.c @@ -16,7 +16,7 @@ #include "q0.h" -#if defined(RGB_MATRIX_ENABLE) && defined(CAPS_LOCK_LED_INDEX) +#if defined(RGB_MATRIX_ENABLE) && defined(NUM_LOCK_LED_INDEX) bool process_record_kb(uint16_t keycode, keyrecord_t *record) { if (!process_record_user(keycode, record)) { @@ -45,11 +45,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { __attribute__((weak)) void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { // RGB_MATRIX_INDICATOR_SET_COLOR(index, red, green, blue); - if (host_keyboard_led_state().caps_lock) { - RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_LED_INDEX, 255, 255, 255); + if (host_keyboard_led_state().num_lock) { + RGB_MATRIX_INDICATOR_SET_COLOR(NUM_LOCK_LED_INDEX, 255, 255, 255); } else { if (!rgb_matrix_get_flags()) { - RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_LED_INDEX, 0, 0, 0); + RGB_MATRIX_INDICATOR_SET_COLOR(NUM_LOCK_LED_INDEX, 0, 0, 0); } } } |