comparison usb488.py @ 59:dd27521002a5

Change default timeout to 500msec
author Daniel O'Connor <doconnor@gsoft.com.au>
date Fri, 08 Jan 2021 14:04:09 +1030
parents 0684a20cc5c3
children 4558e5ccd775
comparison
equal deleted inserted replaced
58:0684a20cc5c3 59:dd27521002a5
235 235
236 def read(self, timeout = None): 236 def read(self, timeout = None):
237 """Read data from the device, waits for up to timeout seconds for each USB transaction""" 237 """Read data from the device, waits for up to timeout seconds for each USB transaction"""
238 238
239 if timeout == None: 239 if timeout == None:
240 timeout = 0.1 240 timeout = 0.5
241 241
242 # Mangle into milliseconds 242 # Mangle into milliseconds
243 _timeout = int(timeout * 1000.0) 243 _timeout = int(timeout * 1000.0)
244 244
245 # Maximum we accept at once 245 # Maximum we accept at once
246 # Was 2^31 - 1 but that seems to make things take too long to 246 # Was 2^31 - 1 but that seems to make things take too long to