mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-10-26 22:10:24 +00:00
examples: Update use of done().
This commit is contained in:
1 parent
c3802d38c2
commit
e6d2ce7f62
1 file changed
+1
-1
@@ -12,7 +12,7 @@ gripper_motor.run_angle(200, 720, wait=False)
|
||||
|
||||
# While one or both of the motors are not done yet,
|
||||
# do something else. In this example, just wait.
|
||||
while not track_motor.control.done() or not gripper_motor.control.done():
|
||||
while not track_motor.done() or not gripper_motor.done():
|
||||
wait(10)
|
||||
|
||||
print("Both motors are done!")
|
||||
Reference in new issue
Block a user