Browse Source

lint fix

pull/23625/head
Xelus22 2 weeks ago
parent
commit
0645dcaef7
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      quantum/rgb_matrix/rgb_matrix_drivers.c

+ 4
- 4
quantum/rgb_matrix/rgb_matrix_drivers.c View File

@ -148,9 +148,9 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
// LED color buffer
rgb_led_t rgb_matrix_ws2812_array[WS2812_LED_COUNT];
#ifdef WS2812_DOUBLE_BUFFER
# ifdef WS2812_DOUBLE_BUFFER
rgb_led_t rgb_matrix_ws2812_flush_array[WS2812_LED_COUNT];
#endif
# endif
bool ws2812_dirty = false;
static void init(void) {
@ -161,13 +161,13 @@ static void init(void) {
static void flush(void) {
if (ws2812_dirty) {
ws2812_dirty = false;
#ifdef WS2812_DOUBLE_BUFFER
# ifdef WS2812_DOUBLE_BUFFER
if (memcmp(rgb_matrix_ws2812_array, rgb_matrix_ws2812_flush_array, WS2812_LED_COUNT) == 0) {
return;
}
memcpy(rgb_matrix_ws2812_flush_array, rgb_matrix_ws2812_array, WS2812_LED_COUNT);
#endif
# endif
ws2812_setleds(rgb_matrix_ws2812_array, WS2812_LED_COUNT);
}
}


Loading…
Cancel
Save