Skip to content

Commit

Permalink
Update timer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC authored Jul 9, 2024
1 parent 44d115a commit 52b0761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/surface/gui/gui/gui_nodes/auxiliary_nodes/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def do_tick(self) -> None:

if self.is_running and self.last_timestamp is not None:
# Michael upstream typing oopsy
# https://github.com/ros2/rclpy/pull/1312
time_left = self.last_timestamp + self.time_left - timestamp
assert isinstance(time_left, Duration)
self.time_left = time_left
Expand Down

0 comments on commit 52b0761

Please sign in to comment.