gcode: Carry over #original and #command in get_extended_params()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c2e1c53356
commit
06420b0ddf
|
@ -204,7 +204,9 @@ class GCodeParser:
|
|||
eargs = m.group('args')
|
||||
try:
|
||||
eparams = [earg.split('=', 1) for earg in eargs.split()]
|
||||
return { k.upper(): v for k, v in eparams }
|
||||
eparams = { k.upper(): v for k, v in eparams }
|
||||
eparams.update({k: params[k] for k in params if k.startswith('#')})
|
||||
return eparams
|
||||
except ValueError as e:
|
||||
raise error("Malformed command '%s'" % (params['#original'],))
|
||||
# Temperature wrappers
|
||||
|
|
Loading…
Reference in New Issue