diff --git a/scripts/logextract.py b/scripts/logextract.py index 5d86cdce..937c68ec 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -148,22 +148,69 @@ class TMCUartHelper: # Shutdown extraction ###################################################################### -stats_seq_s = r" send_seq=(?P[0-9]+) receive_seq=(?P[0-9]+) " +def add_high_bits(val, ref, mask): + half = (mask + 1) // 2 + return ref + ((val - (ref & mask) + half) & mask) - half + count_s = r"(?P[0-9]+)" time_s = r"(?P