logextract: Update for absolutecoord -> absolute_coord change

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-05-31 11:13:22 -04:00
parent 7f04dc46d0
commit 1a8bd750fc
1 changed files with 2 additions and 2 deletions

View File

@ -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' % (