Skip to content

Commit 32d2d28

Browse files
authored
Update usb.py
1 parent 4fe5457 commit 32d2d28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openxc/sources/usb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _read(self, endpoint_address, timeout=None,
8282
read_size=DEFAULT_READ_REQUEST_SIZE):
8383
timeout = timeout or self.DEFAULT_READ_TIMEOUT
8484
try:
85-
str(return self.device.read(0x80 + endpoint_address,
85+
return str(self.device.read(0x80 + endpoint_address,
8686
read_size, self.DEFAULT_INTERFACE_NUMBER, timeout
8787
),'utf-8')
8888
except (usb.core.USBError, AttributeError) as e:

0 commit comments

Comments
 (0)