From 0bf5f4efbea18e4402814f8cacd79967a4257e50 Mon Sep 17 00:00:00 2001 From: TC Wan Date: Wed, 27 Apr 2011 15:21:17 +0800 Subject: wip pyfantom support Some minor cleanups for pyfantom support --- nxt-python-fantom/nxt/fantomglue.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nxt-python-fantom/nxt/fantomglue.py') diff --git a/nxt-python-fantom/nxt/fantomglue.py b/nxt-python-fantom/nxt/fantomglue.py index 89c08b2..5e85e03 100644 --- a/nxt-python-fantom/nxt/fantomglue.py +++ b/nxt-python-fantom/nxt/fantomglue.py @@ -91,6 +91,10 @@ class USBSocket: self._sock = device self.debug = False + def device_name(self): + devinfo = self._sock.deviceinfo() + return devinfo.name + def connect(self): addr, port = addrport if self._sock is None: -- cgit v1.2.3