mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-22 08:24:41 +00:00
fix RGB_DISABLE_TIMEOUT flicker on split keyboards (#14954)
This commit is contained in:
parent
4eb6d19530
commit
2c8d46f408
1 changed files with 2 additions and 6 deletions
|
@ -275,13 +275,9 @@ 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 {
|
||||
if (rgb_anykey_timer + deltaTime <= UINT32_MAX) {
|
||||
rgb_anykey_timer += deltaTime;
|
||||
}
|
||||
}
|
||||
#endif // RGB_DISABLE_TIMEOUT > 0
|
||||
|
||||
// Update double buffer last hit timers
|
||||
|
|
Loading…
Reference in a new issue