Skip to content

Commit

Permalink
handle separation time in microseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjhogan committed Oct 15, 2019
1 parent 4429600 commit 59cd2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/uds.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _isotp_thread(panda, bus, tx_addr, tx_queue, rx_queue):
assert rx_data[0] == 0x30, "tx: flow-control requires: continue"
delay_ts = rx_data[2] & 0x7F
# scale is 1 milliseconds if first bit == 0, 100 micro seconds if first bit == 1
delay_div = 1000. if rx_data[2] & 0x80 == 0 else 100000.
delay_div = 1000. if rx_data[2] & 0x80 == 0 else 10000.
# first frame = 6 bytes, each consecutive frame = 7 bytes
start = 6 + tx_frame["idx"] * 7
count = rx_data[1]
Expand Down

0 comments on commit 59cd2b4

Please sign in to comment.