Skip to content

Commit 94adca3

Browse files
committed
gs_usb: fix bug in transmit when frame timestamp is set (causes failure to pack 64bit host timestamp into gs_usb field)
1 parent 70f2685 commit 94adca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/interfaces/gs_usb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def send(self, msg: can.Message, timeout: Optional[float] = None):
109109
frame = GsUsbFrame()
110110
frame.can_id = can_id
111111
frame.can_dlc = msg.dlc
112-
frame.timestamp_us = int(msg.timestamp * 1000000)
112+
frame.timestamp_us = 0 # timestamp frame field is only useful on receive
113113
frame.data = list(msg.data)
114114

115115
try:

0 commit comments

Comments
 (0)