From de5cadd63669119a6ba83757780dc66bb8f2816c Mon Sep 17 00:00:00 2001 From: Yan-Fa Li Date: Fri, 18 Oct 2019 10:32:43 -0700 Subject: Caps lock indicator moved from keymap (#7070) - to keyboard so it works in configurator --- keyboards/dztech/dz65rgb/dz65rgb.c | 9 +++++++++ keyboards/dztech/dz65rgb/keymaps/default/keymap.c | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'keyboards/dztech/dz65rgb') diff --git a/keyboards/dztech/dz65rgb/dz65rgb.c b/keyboards/dztech/dz65rgb/dz65rgb.c index 932d3f68b..766aea26c 100644 --- a/keyboards/dztech/dz65rgb/dz65rgb.c +++ b/keyboards/dztech/dz65rgb/dz65rgb.c @@ -114,3 +114,12 @@ void suspend_wakeup_init_kb(void) rgb_matrix_set_suspend_state(false); suspend_wakeup_init_user(); } + +__attribute__ ((weak)) +void rgb_matrix_indicators_user(void) +{ + if (IS_LED_ON(host_keyboard_leds(), USB_LED_CAPS_LOCK)) + { + rgb_matrix_set_color(8, 0xFF, 0xFF, 0xFF); + } +} diff --git a/keyboards/dztech/dz65rgb/keymaps/default/keymap.c b/keyboards/dztech/dz65rgb/keymaps/default/keymap.c index dae08a48c..90f25c0e4 100644 --- a/keyboards/dztech/dz65rgb/keymaps/default/keymap.c +++ b/keyboards/dztech/dz65rgb/keymaps/default/keymap.c @@ -16,14 +16,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT), }; -void rgb_matrix_indicators_user(void) -{ - if (IS_LED_ON(host_keyboard_leds(), USB_LED_CAPS_LOCK)) - { - rgb_matrix_set_color(8, 0xFF, 0xFF, 0xFF); - } -} - void matrix_init_user(void) { //user initialization -- cgit v1.2.3-70-g09d2