Skip to content

Commit

Permalink
Pick up fix for timer_input interval problem (#21)
Browse files Browse the repository at this point in the history
Fix a bug with the timer_input component decreasing its interval over time
  • Loading branch information
efunneko authored Jul 15, 2024
1 parent d51e91a commit 54a77da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def get_next_message(self):
else:
# Sleep for the remaining time
sleep_time = (self.interval_ms - delta_time) / 1000
self.last_message_time += sleep_time
time.sleep(sleep_time)
self.last_message_time = self.get_current_time()

return Message(payload={})

Expand Down

0 comments on commit 54a77da

Please sign in to comment.