diff options
| author | Ryan <fauxpark@gmail.com> | 2022-09-23 22:46:23 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-23 22:46:23 +1000 |
| commit | 36c410592dbd35da33ccc5fd6d2a5cbf4b25a708 (patch) | |
| tree | 4e75c5fc5cd31d9fdc904876906c0b409ee45d90 /keyboards/winry | |
| parent | d967de0df749f3be63403e07feda416ea09351d0 (diff) | |
Change `DRIVER_LED_COUNT` to `{LED,RGB}_MATRIX_LED_COUNT` (#18399)
Diffstat (limited to 'keyboards/winry')
| -rw-r--r-- | keyboards/winry/winry315/config.h | 2 | ||||
| -rw-r--r-- | keyboards/winry/winry315/winry315.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/winry/winry315/config.h b/keyboards/winry/winry315/config.h index 1a9617c1e3..3d0921590e 100644 --- a/keyboards/winry/winry315/config.h +++ b/keyboards/winry/winry315/config.h | |||
| @@ -62,7 +62,7 @@ | |||
| 62 | 62 | ||
| 63 | // RGB Matrix configuration. | 63 | // RGB Matrix configuration. |
| 64 | #ifdef RGB_MATRIX_ENABLE | 64 | #ifdef RGB_MATRIX_ENABLE |
| 65 | # define DRIVER_LED_TOTAL RGBLED_NUM | 65 | # define RGB_MATRIX_LED_COUNT RGBLED_NUM |
| 66 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL | 66 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL |
| 67 | 67 | ||
| 68 | # define RGB_MATRIX_CENTER \ | 68 | # define RGB_MATRIX_CENTER \ |
diff --git a/keyboards/winry/winry315/winry315.c b/keyboards/winry/winry315/winry315.c index c741ffeb74..d8042606c0 100644 --- a/keyboards/winry/winry315/winry315.c +++ b/keyboards/winry/winry315/winry315.c | |||
| @@ -223,7 +223,7 @@ void raw_hid_receive_kb(uint8_t *data, uint8_t length) { | |||
| 223 | void winry315_set_orientation(uint8_t orientation) { | 223 | void winry315_set_orientation(uint8_t orientation) { |
| 224 | (void)orientation; | 224 | (void)orientation; |
| 225 | #if defined(RGB_MATRIX_ENABLE) | 225 | #if defined(RGB_MATRIX_ENABLE) |
| 226 | for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { | 226 | for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) { |
| 227 | led_point_t * dst_point = &g_led_config.point[i]; | 227 | led_point_t * dst_point = &g_led_config.point[i]; |
| 228 | const led_point_t *src_point = &initial_led_config.point[i]; | 228 | const led_point_t *src_point = &initial_led_config.point[i]; |
| 229 | uint8_t x = pgm_read_byte(&src_point->x); | 229 | uint8_t x = pgm_read_byte(&src_point->x); |
