Skip to content

Commit

Permalink
don't change where we set split sync bits
Browse files Browse the repository at this point in the history
  • Loading branch information
spidey3 committed Sep 18, 2022
1 parent 81ab613 commit bcb20d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/rgblight/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ void rgblight_set_layer_state(uint8_t layer, bool enabled) {
} else {
rgblight_status.enabled_layer_mask &= ~mask;
}
RGBLIGHT_SPLIT_SET_CHANGE_LAYERS;

// Calling rgblight_set() here (directly or indirectly) could
// potentially cause timing issues when there are multiple
Expand Down Expand Up @@ -1155,7 +1156,6 @@ void rgblight_task(void) {

if (deferred_set_layer_state) {
deferred_set_layer_state = false;
RGBLIGHT_SPLIT_SET_CHANGE_LAYERS;

// Static modes don't have a ticker running to update the LEDs
if (rgblight_status.timer_enabled == false) {
Expand Down

0 comments on commit bcb20d1

Please sign in to comment.