Skip to content

Commit 1cf2077

Browse files
committed
Some devices do not like being reset, so send a clear instead
1 parent 035ba95 commit 1cf2077

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

usbtmc/usbtmc.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,7 @@ def open(self):
312312

313313
self.connected = True
314314

315-
self.reset()
316-
317-
time.sleep(0.01) # prevents a very repeatable pipe error
315+
self.clear()
318316

319317
self.get_capabilities()
320318

@@ -326,13 +324,6 @@ def close(self):
326324

327325
self.connected = False
328326

329-
def reset(self):
330-
if not self.connected:
331-
return
332-
333-
if os.name == 'posix':
334-
self.device.reset()
335-
336327
def is_usb488(self):
337328
return self.iface.bInterfaceProtocol == USB488_bInterfaceProtocol
338329

0 commit comments

Comments
 (0)