From ccfa5e5e74071f81f0e3173a6774e6558d5ba29a Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Sun, 25 Oct 2020 14:50:52 +0100 Subject: [PATCH] Fix up example to use correct object 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 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 --- pydexarm/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydexarm/example.py b/pydexarm/example.py index a8dcadf..022c9d9 100644 --- a/pydexarm/example.py +++ b/pydexarm/example.py @@ -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() @@ -16,4 +16,4 @@ dexarm.air_picker_place() dexarm.go_home() -dexarm.close() \ No newline at end of file +dexarm.close()