Skip to content

Commit 257d57d

Browse files
authored
Fix guaranteed crash when using usb2can (#1249)
1 parent a2c0128 commit 257d57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/interfaces/usb2can/usb2canInterface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(
103103
self.can = Usb2CanAbstractionLayer(dll)
104104

105105
# get the serial number of the device
106-
device_id = kwargs.get("serial", d=channel)
106+
device_id = kwargs.get("serial", channel)
107107

108108
# search for a serial number if the device_id is None or empty
109109
if not device_id:

0 commit comments

Comments
 (0)