mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-23 03:42:59 +00:00
Revert "Split Common: Serial Backlight LED fix (#3586)"
This reverts commit 3eabd7946e
.
This commit is contained in:
parent
baebbc0967
commit
96c9ebc2e4
@ -355,24 +355,6 @@ void matrix_slave_scan(void) {
|
|||||||
for (int i = 0; i < ROWS_PER_HAND; ++i) {
|
for (int i = 0; i < ROWS_PER_HAND; ++i) {
|
||||||
serial_slave_buffer[i] = matrix[offset+i];
|
serial_slave_buffer[i] = matrix[offset+i];
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#ifdef USE_I2C
|
|
||||||
#ifdef BACKLIGHT_ENABLE
|
|
||||||
// Read backlight level sent from master and update level on slave
|
|
||||||
backlight_set(i2c_slave_buffer[0]);
|
|
||||||
#endif
|
|
||||||
for (int i = 0; i < ROWS_PER_HAND; ++i) {
|
|
||||||
i2c_slave_buffer[i+1] = matrix[offset+i];
|
|
||||||
}
|
|
||||||
#else // USE_SERIAL
|
|
||||||
for (int i = 0; i < ROWS_PER_HAND; ++i) {
|
|
||||||
serial_slave_buffer[i] = matrix[offset+i];
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef BACKLIGHT_ENABLE
|
|
||||||
// Read backlight level sent from master and update level on slave
|
|
||||||
backlight_set(serial_master_buffer[SERIAL_BACKLIT_START]);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
matrix_slave_scan_user();
|
matrix_slave_scan_user();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user