summaryrefslogtreecommitdiff
path: root/keyboards/xbows/numpad/numpad.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xbows/numpad/numpad.c')
-rw-r--r--keyboards/xbows/numpad/numpad.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/xbows/numpad/numpad.c b/keyboards/xbows/numpad/numpad.c
index bbc2a1e98a..4d6c256981 100644
--- a/keyboards/xbows/numpad/numpad.c
+++ b/keyboards/xbows/numpad/numpad.c
@@ -15,7 +15,7 @@
*/
#include "numpad.h"
#ifdef RGB_MATRIX_ENABLE
- const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
+ const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
{0, C3_3, C2_3, C1_3}, // L01
{0, C3_4, C2_4, C1_4}, // L02
@@ -71,10 +71,14 @@
} };
- __attribute__ ((weak)) void rgb_matrix_indicators_user(void) {
+bool rgb_matrix_indicators_kb(void) {
+ if (!rgb_matrix_indicators_user()) {
+ return false;
+ }
if (host_keyboard_led_state().num_lock) {
rgb_matrix_set_color(4, 0xFF, 0xFF, 0xFF);
}
+ return true;
}
#endif