From 59cd2b47f91f60a8914f6bebff59afd98ce2c594 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Mon, 10 Dec 2018 20:52:35 -0800 Subject: [PATCH] handle separation time in microseconds --- python/uds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/uds.py b/python/uds.py index 18e29aca9d9bfe..e762a8c8683dab 100644 --- a/python/uds.py +++ b/python/uds.py @@ -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]