diff options
author | Chiang Fong Lee <myself@cflee.net> | 2018-08-18 12:46:12 +0800 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-09-27 19:56:35 -0700 |
commit | 7d2d0c6795eaaa87d4e13fc159807b64ca2d71f9 (patch) | |
tree | 204caad98266b8b173922a799783222765a64ddf /quantum | |
parent | 96c9ebc2e48b8f327bca2a2d5db77c0ab2ef6c8a (diff) | |
download | qmk_firmware-7d2d0c6795eaaa87d4e13fc159807b64ca2d71f9.tar.gz qmk_firmware-7d2d0c6795eaaa87d4e13fc159807b64ca2d71f9.zip |
split_common: fix backlight update for serial boards
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/split_common/split_util.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index 13b09d5b81..7c87de4d9b 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c @@ -106,14 +106,14 @@ void keyboard_slave_loop(void) { // Read Backlight Info #ifdef BACKLIGHT_ENABLE - if (BACKLIT_DIRTY) { - #ifdef USE_I2C + #ifdef USE_I2C + if (BACKLIT_DIRTY) { backlight_set(i2c_slave_buffer[I2C_BACKLIT_START]); - #else // USE_SERIAL - backlight_set(serial_master_buffer[SERIAL_BACKLIT_START]); - #endif - BACKLIT_DIRTY = false; - } + BACKLIT_DIRTY = false; + } + #else // USE_SERIAL + backlight_set(serial_master_buffer[SERIAL_BACKLIT_START]); + #endif #endif // Read RGB Info #ifdef RGBLIGHT_ENABLE |