Commit 03c88119 authored by Felix Kettner's avatar Felix Kettner

Update background.py

parent 0bb42f6c
Pipeline #34327 passed with stage
in 38 seconds
...@@ -181,12 +181,10 @@ def gripper_test(lcd): ...@@ -181,12 +181,10 @@ def gripper_test(lcd):
end = False end = False
while not end: while not end:
button = wait_for_any() button = wait_for_any()
if button == c.BUTTON_LEFT: if button == c.BUTTON_RIGHT:
nano.open_gripper()
break
elif button == c.BUTTON_RIGHT:
nano.close_gripper() nano.close_gripper()
break elif button == c.BUTTON_LEFT:
nano.open_gripper()
else: else:
end = True end = True
nano.open_gripper() nano.open_gripper()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment