Skip to content

Commit

Permalink
Update usblib.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Aug 27, 2021
1 parent 82ee0e9 commit b95d39c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edl/Library/usblib.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ def read(self, length=0x80, timeout=None):
length=ep_read(buffer, timeout)
extend(buffer[:length])
if len(tmp)>0:
if self.loglevel == logging.DEBUG:
self.verify_data(tmp, "RX:")
return tmp
except usb.core.USBError as e:
error = str(e.strerror)
Expand All @@ -403,8 +405,6 @@ def read(self, length=0x80, timeout=None):
sys.exit(0)
else:
break
if self.loglevel == logging.DEBUG:
self.verify_data(tmp, "RX:")
return tmp

def ctrl_transfer(self, bmrequesttype, brequest, wvalue, windex, data_or_wlength):
Expand Down

0 comments on commit b95d39c

Please sign in to comment.