We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbc95d1 commit 87930a0Copy full SHA for 87930a0
can/interfaces/gs_usb.py
@@ -90,7 +90,7 @@ def _recv_internal(
90
msg = can.Message()
91
msg.arbitration_id = frame.arbitration_id
92
msg.dlc = frame.can_dlc
93
- msg.data = bytearray(frame.data)[0:msg.dlc]
+ msg.data = bytearray(frame.data)[0 : msg.dlc]
94
msg.timestamp = frame.timestamp
95
msg.channel = self.channel_info
96
msg.is_extended_id = frame.is_extended_id
0 commit comments