Merge remote-tracking branch 'origin/master' into develop

fix_template_bootmagic
QMK Bot 3 years ago
commit c20096c7aa
  1. 6
      quantum/rgb_matrix/rgb_matrix.c

@ -275,13 +275,9 @@ static void rgb_task_timers(void) {
// Update double buffer timers // Update double buffer timers
#if RGB_DISABLE_TIMEOUT > 0 #if RGB_DISABLE_TIMEOUT > 0
if (rgb_anykey_timer < UINT32_MAX) { if (rgb_anykey_timer + deltaTime <= UINT32_MAX) {
if (UINT32_MAX - deltaTime < rgb_anykey_timer) {
rgb_anykey_timer = UINT32_MAX;
} else {
rgb_anykey_timer += deltaTime; rgb_anykey_timer += deltaTime;
} }
}
#endif // RGB_DISABLE_TIMEOUT > 0 #endif // RGB_DISABLE_TIMEOUT > 0
// Update double buffer last hit timers // Update double buffer last hit timers

Loading…
Cancel
Save