Skip to content

Commit

Permalink
gs_usb: fix bug in transmit when frame timestamp is set (causes failu…
Browse files Browse the repository at this point in the history
…re to pack 64bit host timestamp into gs_usb field)
  • Loading branch information
BenGardiner committed Aug 7, 2024
1 parent 70f2685 commit 94adca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion can/interfaces/gs_usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def send(self, msg: can.Message, timeout: Optional[float] = None):
frame = GsUsbFrame()
frame.can_id = can_id
frame.can_dlc = msg.dlc
frame.timestamp_us = int(msg.timestamp * 1000000)
frame.timestamp_us = 0 # timestamp frame field is only useful on receive
frame.data = list(msg.data)

try:
Expand Down

0 comments on commit 94adca3

Please sign in to comment.