From 1a8bd750fcaaea6f27298d72d309a2fa3eccf3b3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 31 May 2019 11:13:22 -0400 Subject: [PATCH] logextract: Update for absolutecoord -> absolute_coord change Signed-off-by: Kevin O'Connor --- scripts/logextract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/logextract.py b/scripts/logextract.py index a70b2002..95e87da7 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -121,9 +121,9 @@ class GatherShutdown: def handle_gcode_state(self, line): kv = self.extract_params(line) out = ['; Start g-code state restore', 'G28'] - if not kv['absolutecoord']: + if not kv.get('absolute_coord', kv.get('absolutecoord')): out.append('G91') - if not kv['absoluteextrude']: + if not kv.get('absolute_extrude', kv.get('absoluteextrude')): out.append('M83') lp = kv['last_position'] out.append('G1 X%f Y%f Z%f F%f' % (