button_queue: fix cpu never unboosted

regression introduced in da9d67a

Change-Id: Id1496873f1ab72fecc225dcfc78e633eea441089
This commit is contained in:
Christian Soffke 2024-12-27 17:41:34 +01:00
parent 5e09a9246c
commit 8bd62e35cc

View file

@ -48,7 +48,7 @@ static void button_boost(bool state)
cpu_boost(true);
}
}
else if (!button_boosted && TIME_AFTER(current_tick, button_unboost_tick))
else if (button_boosted && TIME_AFTER(current_tick, button_unboost_tick))
{
button_boosted = false;
cpu_boost(false);