From bb8a5f398768b052d2a0d8fc9df868155d812d76 Mon Sep 17 00:00:00 2001 From: Arceveti Date: Mon, 6 Mar 2023 17:34:55 -0500 Subject: [PATCH] Fix status poll timer --- src/game/game_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/game_input.c b/src/game/game_input.c index 2ae098603..dfe789654 100644 --- a/src/game/game_input.c +++ b/src/game/game_input.c @@ -376,11 +376,11 @@ void handle_input(OSMesg* mesg) { if (gContStatusPolling) { // Only poll controller status about twice per second. - if (gContStatusPollTimer > CONT_STATUS_POLLING_TIME) { - gContStatusPollTimer = 0; + if (gContStatusPollTimer == 0) { + gContStatusPollTimer = CONT_STATUS_POLLING_TIME; poll_controller_statuses(mesg); } else { - gContStatusPollTimer++; + gContStatusPollTimer--; } }