Skip to content

Commit

Permalink
Quick fix of robot connect loop running forever
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMO MOCAP LAB committed Feb 21, 2024
1 parent 4522557 commit e86134e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pyromocc/pyromocc/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def connect(self):
self.is_connected = self._connect()

t0 = time.time()
while not self._has_valid_state() or time.time()-t0 > 5.0:
while not self._has_valid_state() and time.time()-t0 < 5.0:
time.sleep(0.1)
self.is_connected = self._has_valid_state()

Expand Down

0 comments on commit e86134e

Please sign in to comment.