diff options
| -rw-r--r-- | quantum/split_common/matrix.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/quantum/split_common/matrix.c b/quantum/split_common/matrix.c index 0a79e4256..4af90209f 100644 --- a/quantum/split_common/matrix.c +++ b/quantum/split_common/matrix.c | |||
| @@ -341,6 +341,24 @@ void matrix_slave_scan(void) { | |||
| 341 | serial_slave_buffer[i] = matrix[offset+i]; | 341 | serial_slave_buffer[i] = matrix[offset+i]; |
| 342 | } | 342 | } |
| 343 | #endif | 343 | #endif |
| 344 | #ifdef USE_I2C | ||
| 345 | #ifdef BACKLIGHT_ENABLE | ||
| 346 | // Read backlight level sent from master and update level on slave | ||
| 347 | backlight_set(i2c_slave_buffer[0]); | ||
| 348 | #endif | ||
| 349 | for (int i = 0; i < ROWS_PER_HAND; ++i) { | ||
| 350 | i2c_slave_buffer[i+1] = matrix[offset+i]; | ||
| 351 | } | ||
| 352 | #else // USE_SERIAL | ||
| 353 | for (int i = 0; i < ROWS_PER_HAND; ++i) { | ||
| 354 | serial_slave_buffer[i] = matrix[offset+i]; | ||
| 355 | } | ||
| 356 | |||
| 357 | #ifdef BACKLIGHT_ENABLE | ||
| 358 | // Read backlight level sent from master and update level on slave | ||
| 359 | backlight_set(serial_master_buffer[SERIAL_BACKLIT_START]); | ||
| 360 | #endif | ||
| 361 | #endif | ||
| 344 | matrix_slave_scan_user(); | 362 | matrix_slave_scan_user(); |
| 345 | } | 363 | } |
| 346 | 364 | ||
