changeset 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 b6dc43e6f6f0
files usb488.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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"""