From 4d703db04d2f1f66c16d300684c868daf5b2f3ad Mon Sep 17 00:00:00 2001 From: Jonathon Reinhart Date: Wed, 4 Feb 2015 01:22:33 -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. This is identical to a8480b45 in pyCCSniffer. --- ccsniffpiper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccsniffpiper.py b/ccsniffpiper.py index 969b58a..18b3483 100644 --- a/ccsniffpiper.py +++ b/ccsniffpiper.py @@ -334,7 +334,7 @@ def isRunning(self): def recv(self): while self.running: - bytesteam = self.dev.read(CC2531.DATA_EP, 4096, 0, CC2531.DATA_TIMEOUT) + bytesteam = self.dev.read(CC2531.DATA_EP, 4096, timeout=CC2531.DATA_TIMEOUT) # print "RECV>> %s" % binascii.hexlify(bytesteam) if len(bytesteam) >= 3: