summaryrefslogtreecommitdiff
path: root/nxt-python-fantom/nxt/pyusbglue.py
diff options
context:
space:
mode:
Diffstat (limited to 'nxt-python-fantom/nxt/pyusbglue.py')
-rw-r--r--nxt-python-fantom/nxt/pyusbglue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nxt-python-fantom/nxt/pyusbglue.py b/nxt-python-fantom/nxt/pyusbglue.py
index 2d64d24..40f708b 100644
--- a/nxt-python-fantom/nxt/pyusbglue.py
+++ b/nxt-python-fantom/nxt/pyusbglue.py
@@ -28,8 +28,8 @@ class USBSocket:
self.handle = None
self.debug = False
- def __str__(self):
- return 'USB (%s)' % (self.device.filename)
+ def device_name(self):
+ return self.device.filename
def connect(self):
'Use to connect to NXT.'