aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-06-12 10:12:02 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-06-13 22:32:41 -0400
commit064212a191bcff50ac3dc4f1bd24095b15fc2be2 (patch)
tree706bc960b1ee473114a011085deed835537c3985 /scripts
parent3819ad29861dcdc93b2513d5c61151bc74603cd4 (diff)
downloadkutter-064212a191bcff50ac3dc4f1bd24095b15fc2be2.tar.gz
kutter-064212a191bcff50ac3dc4f1bd24095b15fc2be2.tar.xz
kutter-064212a191bcff50ac3dc4f1bd24095b15fc2be2.zip
logextract: Detect clock field even if it is last field on line
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/logextract.py2
1 files changed, 1 insertions, 1 deletions
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<st>[^ ]+)"
+ r" (?P<sc>[0-9]+) (?P<f>[^ ]+)\)")
repl_seq_r = re.compile(r": seq: 1" + shortseq_s)
-repl_clock_r = re.compile(r"clock=(?P<clock>[0-9]+) ")
+repl_clock_r = re.compile(r"clock=(?P<clock>[0-9]+)(?: |$)")
mcu_r = re.compile(r"MCU '(?P<mcu>[^']+)' (is_)?shutdown: (?P<reason>.*)$")
def add_high_bits(val, ref, mask):