summaryrefslogtreecommitdiff
path: root/keyboards/keychron/q3/q3.c
diff options
context:
space:
mode:
authorjack <0x6a73@protonmail.com>2022-10-12 21:09:10 -0600
committerGitHub <noreply@github.com>2022-10-13 14:09:10 +1100
commit3f4fd85dc7f91d008c778e516dc261b5b2e72b55 (patch)
tree3189f0cbf8eab0a0d4f0075c2ef894ece0063a8e /keyboards/keychron/q3/q3.c
parent563a59d3c732a4fdf4ef256b07b1e92c8951a032 (diff)
Fixup keychron/q3 (#18687)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/keychron/q3/q3.c')
-rw-r--r--keyboards/keychron/q3/q3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/keychron/q3/q3.c b/keyboards/keychron/q3/q3.c
index 5aa6029d69..120013e77e 100644
--- a/keyboards/keychron/q3/q3.c
+++ b/keyboards/keychron/q3/q3.c
@@ -72,7 +72,8 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return true;
}
-__attribute__((weak)) void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
+bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
+ if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) { return false; }
// RGB_MATRIX_INDICATOR_SET_COLOR(index, red, green, blue);
if (host_keyboard_led_state().caps_lock) {
@@ -82,6 +83,7 @@ __attribute__((weak)) void rgb_matrix_indicators_advanced_user(uint8_t led_min,
RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_LED_INDEX, 0, 0, 0);
}
}
+ return true;
}
#endif // CAPS_LOCK_LED_INDEX