From a8480b45b33222f57c50c42102741b003af810b9 Mon Sep 17 00:00:00 2001 From: Jonathon Reinhart Date: Wed, 10 Dec 2014 01:59:09 -0500 Subject: [PATCH] remove interface argument to Dev.read() call The interface argument was removed at some point and is apparently unneeded. I also specified the timeout argument by name, so this will still work with older versions of pyusb that still have the interface parameter. --- pyCCSniffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyCCSniffer.py b/pyCCSniffer.py index 58af540..6e4451f 100644 --- a/pyCCSniffer.py +++ b/pyCCSniffer.py @@ -329,7 +329,7 @@ def recv(self): # While the running flag is set, continue to read from the USB device while self.running: - bytesteam = self.dev.read(CC2531EMK.DATA_EP, 4096, 0, CC2531EMK.DATA_TIMEOUT) + bytesteam = self.dev.read(CC2531EMK.DATA_EP, 4096, timeout=CC2531EMK.DATA_TIMEOUT) # print "RECV>> %s" % binascii.hexlify(bytesteam) if len(bytesteam) >= 3: