We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1909f8 + 711e437 commit 7e118dfCopy full SHA for 7e118df
1 file changed
candle/candle_bus.py
@@ -1,3 +1,4 @@
1
+import time
2
from typing import Optional, Tuple, List, Union
3
import can
4
from can.typechecking import CanFilters, AutoDetectedConfig
@@ -140,8 +141,9 @@ def _recv_internal(
140
141
pass
142
143
if frame is not None:
144
+ timestamp = frame.timestamp if self._channel.feature.hardware_timestamp else time.monotonic()
145
msg = can.Message(
- timestamp=frame.timestamp,
146
+ timestamp=timestamp,
147
arbitration_id=frame.can_id,
148
is_extended_id=frame.frame_type.extended_id,
149
is_remote_frame=frame.frame_type.remote_frame,
0 commit comments