Skip to content

Commit

Permalink
fix RGB_DISABLE_TIMEOUT flicker on split keyboards (#14954)
Browse files Browse the repository at this point in the history
  • Loading branch information
eberthold authored Dec 27, 2021
1 parent 4eb6d19 commit 2c8d46f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions quantum/rgb_matrix/rgb_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,8 @@ static void rgb_task_timers(void) {

// Update double buffer timers
#if RGB_DISABLE_TIMEOUT > 0
if (rgb_anykey_timer < UINT32_MAX) {
if (UINT32_MAX - deltaTime < rgb_anykey_timer) {
rgb_anykey_timer = UINT32_MAX;
} else {
rgb_anykey_timer += deltaTime;
}
if (rgb_anykey_timer + deltaTime <= UINT32_MAX) {
rgb_anykey_timer += deltaTime;
}
#endif // RGB_DISABLE_TIMEOUT > 0

Expand Down

0 comments on commit 2c8d46f

Please sign in to comment.