diff options
Diffstat (limited to 'quantum/split_common/matrix.c')
-rw-r--r-- | quantum/split_common/matrix.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/quantum/split_common/matrix.c b/quantum/split_common/matrix.c index 3d2983f2e..ff6738b58 100644 --- a/quantum/split_common/matrix.c +++ b/quantum/split_common/matrix.c | |||
@@ -356,24 +356,6 @@ void matrix_slave_scan(void) { | |||
356 | serial_slave_buffer[i] = matrix[offset+i]; | 356 | serial_slave_buffer[i] = matrix[offset+i]; |
357 | } | 357 | } |
358 | #endif | 358 | #endif |
359 | #ifdef USE_I2C | ||
360 | #ifdef BACKLIGHT_ENABLE | ||
361 | // Read backlight level sent from master and update level on slave | ||
362 | backlight_set(i2c_slave_buffer[0]); | ||
363 | #endif | ||
364 | for (int i = 0; i < ROWS_PER_HAND; ++i) { | ||
365 | i2c_slave_buffer[i+1] = matrix[offset+i]; | ||
366 | } | ||
367 | #else // USE_SERIAL | ||
368 | for (int i = 0; i < ROWS_PER_HAND; ++i) { | ||
369 | serial_slave_buffer[i] = matrix[offset+i]; | ||
370 | } | ||
371 | |||
372 | #ifdef BACKLIGHT_ENABLE | ||
373 | // Read backlight level sent from master and update level on slave | ||
374 | backlight_set(serial_master_buffer[SERIAL_BACKLIT_START]); | ||
375 | #endif | ||
376 | #endif | ||
377 | matrix_slave_scan_user(); | 359 | matrix_slave_scan_user(); |
378 | } | 360 | } |
379 | 361 | ||