diff 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
line wrap: on
line diff
--- a/usb488.py	Fri Jan 08 14:04:09 2021 +1030
+++ b/usb488.py	Fri Jan 08 14:04:18 2021 +1030
@@ -294,7 +294,7 @@
 
     def ask(self, s, timeout = None):
         self.write(s)
-        return self.read(timeout = None)
+        return self.read(timeout = timeout)
 
     def isConnected(self):
         """Check if the device is present"""