Skip to content

Commit f614aae

Browse files
committed
Format with black
1 parent 843d5e4 commit f614aae

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

can/interfaces/ixxat/canlib_vcinpl.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def _recv_internal(self, timeout):
721721
)
722722
elif self._message.uMsgInfo.Bits.type == constants.CAN_MSGTYPE_TIMEOVR:
723723
# Add the number of timestamp overruns to the high word
724-
self._overrunticks += (self._message.dwMsgId << 32)
724+
self._overrunticks += self._message.dwMsgId << 32
725725
else:
726726
log.warning(
727727
"Unexpected message info type 0x%X",
@@ -754,8 +754,11 @@ def _recv_internal(self, timeout):
754754
return None, True
755755

756756
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,
759762
is_remote_frame=bool(self._message.uMsgInfo.Bits.rtr),
760763
is_extended_id=bool(self._message.uMsgInfo.Bits.ext),
761764
arbitration_id=self._message.dwMsgId,

can/interfaces/ixxat/canlib_vcinpl2.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def _recv_internal(self, timeout):
864864
== constants.CAN_MSGTYPE_TIMEOVR
865865
):
866866
# Add the number of timestamp overruns to the high word
867-
self._overrunticks += (self._message.dwMsgId << 32)
867+
self._overrunticks += self._message.dwMsgId << 32
868868
else:
869869
log.warning("Unexpected message info type")
870870

@@ -879,8 +879,11 @@ def _recv_internal(self, timeout):
879879

880880
data_len = dlc2len(self._message.uMsgInfo.Bits.dlc)
881881
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,
884887
is_remote_frame=bool(self._message.uMsgInfo.Bits.rtr),
885888
is_fd=bool(self._message.uMsgInfo.Bits.edl),
886889
is_rx=True,

0 commit comments

Comments
 (0)