diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-10-01 12:31:31 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-10-01 12:31:31 -0400 |
commit | 820dd0b5e3d5f9242bcf36b17e9abf6f5b057c78 (patch) | |
tree | ee45047fb6aedc665f8b30fbf3da2c0f5b92d101 | |
parent | f49f29800328165cfa04d8dec8b2f6524a606a5d (diff) | |
download | kutter-820dd0b5e3d5f9242bcf36b17e9abf6f5b057c78.tar.gz kutter-820dd0b5e3d5f9242bcf36b17e9abf6f5b057c78.tar.xz kutter-820dd0b5e3d5f9242bcf36b17e9abf6f5b057c78.zip |
display: Don't error if M73 is missing a P parameter
Try to avoid raising an error on an M73 command.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/extras/display/display.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py index 951007f4..39796d76 100644 --- a/klippy/extras/display/display.py +++ b/klippy/extras/display/display.py @@ -246,7 +246,8 @@ class PrinterLCD: self.msg_time = msg_time # print progress: M73 P<percent> def cmd_M73(self, params): - self.progress = min(100., max(0., self.gcode.get_float('P', params))) + self.progress = min(100., max(0., self.gcode.get_float( + 'P', params, 0.))) self.prg_time = M73_TIMEOUT def cmd_M117(self, params): if '#original' in params: |