Mercurial > ~darius > hgwebdir.cgi > pyinst
comparison usb488.py @ 60:4558e5ccd775
Honour timeout passed into ask()
author | Daniel O'Connor <doconnor@gsoft.com.au> |
---|---|
date | Fri, 08 Jan 2021 14:04:18 +1030 |
parents | dd27521002a5 |
children | 29bcef559283 |
comparison
equal
deleted
inserted
replaced
59:dd27521002a5 | 60:4558e5ccd775 |
---|---|
292 | 292 |
293 return result | 293 return result |
294 | 294 |
295 def ask(self, s, timeout = None): | 295 def ask(self, s, timeout = None): |
296 self.write(s) | 296 self.write(s) |
297 return self.read(timeout = None) | 297 return self.read(timeout = timeout) |
298 | 298 |
299 def isConnected(self): | 299 def isConnected(self): |
300 """Check if the device is present""" | 300 """Check if the device is present""" |
301 | 301 |
302 # libusb makes it very hard (at least on FreeBSD) to determine if we're still connected. | 302 # libusb makes it very hard (at least on FreeBSD) to determine if we're still connected. |