diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-10-02 21:48:45 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-10-02 22:06:43 -0400 |
commit | 06420b0ddf631aea1af72e3410363f8eec53a165 (patch) | |
tree | e3239656049f976ca110f0b0cc616f6a63637b1f /klippy/gcode.py | |
parent | c2e1c533561e1cf6f23c37705e9d8b24592b12bf (diff) | |
download | kutter-06420b0ddf631aea1af72e3410363f8eec53a165.tar.gz kutter-06420b0ddf631aea1af72e3410363f8eec53a165.tar.xz kutter-06420b0ddf631aea1af72e3410363f8eec53a165.zip |
gcode: Carry over #original and #command in get_extended_params()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index c52edf80..9d58e7af 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -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 |