From ce559cf23d73ab35fb4b165af7c6414c52abec99 Mon Sep 17 00:00:00 2001 From: Felix Divo <4403130+felixdivo@users.noreply.github.com> Date: Fri, 4 Feb 2022 20:06:06 +0100 Subject: [PATCH] Fix guaranteed crash when using usb2can --- can/interfaces/usb2can/usb2canInterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/can/interfaces/usb2can/usb2canInterface.py b/can/interfaces/usb2can/usb2canInterface.py index 258853425..0d3323f9e 100644 --- a/can/interfaces/usb2can/usb2canInterface.py +++ b/can/interfaces/usb2can/usb2canInterface.py @@ -103,7 +103,7 @@ def __init__( self.can = Usb2CanAbstractionLayer(dll) # get the serial number of the device - device_id = kwargs.get("serial", d=channel) + device_id = kwargs.get("serial", channel) # search for a serial number if the device_id is None or empty if not device_id: