Fix status poll timer

This commit is contained in:
Arceveti
2023-03-06 17:34:55 -05:00
parent 8b1f359555
commit bb8a5f3987

View File

@@ -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--;
}
}