Skip to content

Commit

Permalink
Fix up example to use correct object
Browse files Browse the repository at this point in the history
Currently the example fails with: python3 pydexarm/example.py
pydexarm: /dev/ttyACM0 open
Traceback (most recent call last):
  File "/home/michele/Devel/DexArm_API/pydexarm/example.py", line 9, in <module>
    dexarm.go_home()
NameError: name 'dexarm' is not defined

Let's point it to the proper class so things start working again.
Renaming 'dexarm' instead of 'device' in order to make it less
confusing.

Signed-off-by: Michele Baldessari <[email protected]>
  • Loading branch information
mbaldessari committed Oct 25, 2020
1 parent 34f4bd4 commit ccfa5e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydexarm/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'''windows'''
dexarm = Dexarm(port="COM67")
'''mac & linux'''
# device = Dexarm(port="/dev/tty.usbmodem3086337A34381")
# dexarm = Dexarm(port="/dev/tty.usbmodem3086337A34381")

dexarm.go_home()

Expand All @@ -16,4 +16,4 @@
dexarm.air_picker_place()

dexarm.go_home()
dexarm.close()
dexarm.close()

0 comments on commit ccfa5e5

Please sign in to comment.