From e6d2ce7f62fb42e6e1306734ea5b999584c1db3e Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 2 Dec 2022 12:27:21 +0100 Subject: [PATCH] examples: Update use of done(). --- examples/pup/motor/motor_action_wait_advanced.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pup/motor/motor_action_wait_advanced.py b/examples/pup/motor/motor_action_wait_advanced.py index a2b1e05..4a29765 100644 --- a/examples/pup/motor/motor_action_wait_advanced.py +++ b/examples/pup/motor/motor_action_wait_advanced.py @@ -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!")