aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgb_matrix/rgb_matrix_drivers.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgb_matrix/rgb_matrix_drivers.c')
-rw-r--r--quantum/rgb_matrix/rgb_matrix_drivers.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c
index 4335088eb..949cc3661 100644
--- a/quantum/rgb_matrix/rgb_matrix_drivers.c
+++ b/quantum/rgb_matrix/rgb_matrix_drivers.c
@@ -250,6 +250,14 @@ static void flush(void) {
250 250
251// Set an led in the buffer to a color 251// Set an led in the buffer to a color
252static inline void setled(int i, uint8_t r, uint8_t g, uint8_t b) { 252static inline void setled(int i, uint8_t r, uint8_t g, uint8_t b) {
253# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT)
254 const uint8_t k_rgb_matrix_split[2] = RGB_MATRIX_SPLIT;
255 if (!is_keyboard_left() && (i >= k_rgb_matrix_split[0])) {
256 i -= k_rgb_matrix_split[0];
257 } else if (is_keyboard_left() && (i >= k_rgb_matrix_split[0]))
258 return;
259# endif
260
253 rgb_matrix_ws2812_array[i].r = r; 261 rgb_matrix_ws2812_array[i].r = r;
254 rgb_matrix_ws2812_array[i].g = g; 262 rgb_matrix_ws2812_array[i].g = g;
255 rgb_matrix_ws2812_array[i].b = b; 263 rgb_matrix_ws2812_array[i].b = b;