diff --git a/scripts/logextract.py b/scripts/logextract.py index 17584cbb..578f1a35 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -66,7 +66,7 @@ gcode_r = re.compile(r"^Read " + time_s + ": ['\"]") clock_r = re.compile(r"^clocksync state: .* clock_est=\((?P[^ ]+)" + r" (?P[0-9]+) (?P[^ ]+)\)") repl_seq_r = re.compile(r": seq: 1" + shortseq_s) -repl_clock_r = re.compile(r"clock=(?P[0-9]+) ") +repl_clock_r = re.compile(r"clock=(?P[0-9]+)(?: |$)") mcu_r = re.compile(r"MCU '(?P[^']+)' (is_)?shutdown: (?P.*)$") def add_high_bits(val, ref, mask):