Py2 -> Py3: use the floor division operator // where possible

In Python 3, traditional division operator returns a float,
while we need a floor integer in the most cases.

Change-Id: I5565eb64a1ddea7075cbb142eaacaa5d494c87bb
This commit is contained in:
Vadim Yanitskiy authored and laforge committed 2020-02-15 19:11:50 +00:00
1 parent 4133080ced
commit 99affe1529
3 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -213,7 +213,7 @@ class SerialSimLink(LinkBase):
self._tx_string(pdu[5:])
# Receive data (including SW !)
# length = [P3 - tx_data (=len(pdu)-len(hdr)) + 2 (SW1/2) ]
# length = [P3 - tx_data (=len(pdu)-len(hdr)) + 2 (SW1//2) ]
to_recv = data_len - len(pdu) + 5 + 2
data = ''