summaryrefslogtreecommitdiff
path: root/keyboards/keychron/q0/q0.c
diff options
context:
space:
mode:
authorlalalademaxiya1 <66767061+lalalademaxiya1@users.noreply.github.com>2022-09-30 00:50:47 +0800
committerGitHub <noreply@github.com>2022-09-29 17:50:47 +0100
commitbfcbcfe3c7efad948a026ad8c365007bb82d9b6a (patch)
treef42706402b89f136b87a38b31c372ad09f92056e /keyboards/keychron/q0/q0.c
parent14e18864056f836f359258521d63ddf7597d0dd7 (diff)
Update q0 for keychron (#18522)
Diffstat (limited to 'keyboards/keychron/q0/q0.c')
-rw-r--r--keyboards/keychron/q0/q0.c8
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);
}
}
}