File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,7 @@ def _recv_internal(self, timeout):
721
721
)
722
722
elif self ._message .uMsgInfo .Bits .type == constants .CAN_MSGTYPE_TIMEOVR :
723
723
# Add the number of timestamp overruns to the high word
724
- self ._overrunticks += ( self ._message .dwMsgId << 32 )
724
+ self ._overrunticks += self ._message .dwMsgId << 32
725
725
else :
726
726
log .warning (
727
727
"Unexpected message info type 0x%X" ,
@@ -754,8 +754,11 @@ def _recv_internal(self, timeout):
754
754
return None , True
755
755
756
756
rx_msg = Message (
757
- timestamp = ((self ._message .dwTime + self ._overrunticks - self ._starttickoffset )
758
- / self ._tick_resolution ) + self ._timeoffset ,
757
+ timestamp = (
758
+ (self ._message .dwTime + self ._overrunticks - self ._starttickoffset )
759
+ / self ._tick_resolution
760
+ )
761
+ + self ._timeoffset ,
759
762
is_remote_frame = bool (self ._message .uMsgInfo .Bits .rtr ),
760
763
is_extended_id = bool (self ._message .uMsgInfo .Bits .ext ),
761
764
arbitration_id = self ._message .dwMsgId ,
Original file line number Diff line number Diff line change @@ -864,7 +864,7 @@ def _recv_internal(self, timeout):
864
864
== constants .CAN_MSGTYPE_TIMEOVR
865
865
):
866
866
# Add the number of timestamp overruns to the high word
867
- self ._overrunticks += ( self ._message .dwMsgId << 32 )
867
+ self ._overrunticks += self ._message .dwMsgId << 32
868
868
else :
869
869
log .warning ("Unexpected message info type" )
870
870
@@ -879,8 +879,11 @@ def _recv_internal(self, timeout):
879
879
880
880
data_len = dlc2len (self ._message .uMsgInfo .Bits .dlc )
881
881
rx_msg = Message (
882
- timestamp = ((self ._message .dwTime + self ._overrunticks - self ._starttickoffset )
883
- / self ._tick_resolution ) + self ._timeoffset ,
882
+ timestamp = (
883
+ (self ._message .dwTime + self ._overrunticks - self ._starttickoffset )
884
+ / self ._tick_resolution
885
+ )
886
+ + self ._timeoffset ,
884
887
is_remote_frame = bool (self ._message .uMsgInfo .Bits .rtr ),
885
888
is_fd = bool (self ._message .uMsgInfo .Bits .edl ),
886
889
is_rx = True ,
You can’t perform that action at this time.
0 commit comments