diff --git a/keyboards/skyloong/gk104/q1/ansi/keymaps/via/keymap.c b/keyboards/skyloong/gk104/q1/ansi/keymaps/via/keymap.c index ce5958cb9c3..2745cdae933 100644 --- a/keyboards/skyloong/gk104/q1/ansi/keymaps/via/keymap.c +++ b/keyboards/skyloong/gk104/q1/ansi/keymaps/via/keymap.c @@ -61,7 +61,7 @@ const uint16_t PROGMEM dip_switch_map[NUM_DIP_SWITCHES][NUM_DIP_STATES] = { DIP_SWITCH_OFF_ON(TO(0), TO(1)), }; #endif - +/* bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { switch (get_highest_layer(layer_state)) { @@ -87,4 +87,4 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { } return true; } - +*/ diff --git a/keyboards/skyloong/gk104/q1/q1.c b/keyboards/skyloong/gk104/q1/q1.c index 5cd61c40887..20de9b3f486 100644 --- a/keyboards/skyloong/gk104/q1/q1.c +++ b/keyboards/skyloong/gk104/q1/q1.c @@ -271,35 +271,41 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) { //caps lock display if (host_keyboard_led_state().caps_lock) { - RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_INDEX, 255, 255, 255); + // RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_INDEX, 255, 255, 255); IND = IND | CAPS_ON; } else { + /* if (!rgb_matrix_get_flags()) { RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_INDEX, 0, 0, 0); } + */ IND = IND & (~CAPS_ON); } //number lock display if (host_keyboard_led_state().num_lock) { - RGB_MATRIX_INDICATOR_SET_COLOR(NUM_LOCK_INDEX, 255, 255, 255); + // RGB_MATRIX_INDICATOR_SET_COLOR(NUM_LOCK_INDEX, 255, 255, 255); IND = IND | NUM_ON; } else { + /* if (!rgb_matrix_get_flags()) { RGB_MATRIX_INDICATOR_SET_COLOR(NUM_LOCK_INDEX, 0, 0, 0); } + */ IND = IND & (~NUM_ON); } //scroll lock display if (host_keyboard_led_state().scroll_lock) { - RGB_MATRIX_INDICATOR_SET_COLOR(SCR_LOCK_INDEX, 255, 255, 255); + // RGB_MATRIX_INDICATOR_SET_COLOR(SCR_LOCK_INDEX, 255, 255, 255); IND = IND | SCR_ON; } else { + /* if (!rgb_matrix_get_flags()) { RGB_MATRIX_INDICATOR_SET_COLOR(SCR_LOCK_INDEX, 0, 0, 0); } + */ IND = IND & (~SCR_ON); } - + /* switch (get_highest_layer(layer_state)) { case 0:{ if (FN_ON) { @@ -330,7 +336,7 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) { return true; } - + */ s_serial_to_parallel(IND); return true; }