mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-17 17:35:30 +00:00
Fix Indicator LED issues (#12097)
This commit is contained in:
parent
37496f4b60
commit
4b96d5876e
3 changed files with 5 additions and 6 deletions
|
@ -73,9 +73,8 @@ led_config_t g_led_config = { {
|
||||||
|
|
||||||
|
|
||||||
#ifdef USB_LED_INDICATOR_ENABLE
|
#ifdef USB_LED_INDICATOR_ENABLE
|
||||||
void rgb_matrix_indicators_kb(void)
|
void rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
|
||||||
{
|
md_rgb_matrix_indicators_advanced(led_min, led_max);
|
||||||
md_rgb_matrix_indicators();
|
|
||||||
}
|
}
|
||||||
#endif // USB_LED_INDICATOR_ENABLE
|
#endif // USB_LED_INDICATOR_ENABLE
|
||||||
|
|
||||||
|
|
|
@ -291,10 +291,10 @@ static void flush(void) {
|
||||||
i2c_led_q_run();
|
i2c_led_q_run();
|
||||||
}
|
}
|
||||||
|
|
||||||
void md_rgb_matrix_indicators(void) {
|
void md_rgb_matrix_indicators_advanced(uint8_t led_min, uint8_t led_max) {
|
||||||
uint8_t kbled = keyboard_leds();
|
uint8_t kbled = keyboard_leds();
|
||||||
if (kbled && rgb_matrix_config.enable) {
|
if (kbled && rgb_matrix_config.enable) {
|
||||||
for (uint8_t i = 0; i < ISSI3733_LED_COUNT; i++) {
|
for (uint8_t i = led_min; i < led_max; i++) {
|
||||||
if (
|
if (
|
||||||
# if USB_LED_NUM_LOCK_SCANCODE != 255
|
# if USB_LED_NUM_LOCK_SCANCODE != 255
|
||||||
(led_map[i].scan == USB_LED_NUM_LOCK_SCANCODE && (kbled & (1 << USB_LED_NUM_LOCK))) ||
|
(led_map[i].scan == USB_LED_NUM_LOCK_SCANCODE && (kbled & (1 << USB_LED_NUM_LOCK))) ||
|
||||||
|
|
|
@ -86,7 +86,7 @@ extern uint8_t gcr_actual_last;
|
||||||
|
|
||||||
void gcr_compute(void);
|
void gcr_compute(void);
|
||||||
|
|
||||||
void md_rgb_matrix_indicators(void);
|
void md_rgb_matrix_indicators_advanced(uint8_t led_min, uint8_t led_max);
|
||||||
|
|
||||||
/*------------------------- Legacy Lighting Support ------------------------*/
|
/*------------------------- Legacy Lighting Support ------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue