Change DRIVER_LED_COUNT
to {LED,RGB}_MATRIX_LED_COUNT
(#18399)
This commit is contained in:
@@ -136,7 +136,7 @@ led_config_t PROGMEM g_led_config = {{
|
||||
4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4
|
||||
}};
|
||||
|
||||
const aw_led g_aw_leds[DRIVER_LED_TOTAL] = {
|
||||
const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
{0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13
|
||||
{0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16
|
||||
{0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include "rgb_matrix.h"
|
||||
|
||||
void rgb_matrix_set_color_flags(uint8_t red, uint8_t green, uint8_t blue, uint8_t flags) {
|
||||
for (uint8_t ii = 0; ii < DRIVER_LED_TOTAL; ii++) {
|
||||
for (uint8_t ii = 0; ii < RGB_MATRIX_LED_COUNT; ii++) {
|
||||
if (g_led_config.flags[ii] & flags) {
|
||||
rgb_matrix_set_color(ii, red, green, blue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user