diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-12-27 20:51:41 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-02 17:34:56 -0500 |
commit | 68ebde0d86b8952803400b1245eb220806175084 (patch) | |
tree | e1beca60f8aef06341d0b0214e9be1295a5d01cd /klippy/extras/display/display.py | |
parent | e4e0fec681a934adc7592e080e2653e0e808fdec (diff) | |
download | kutter-68ebde0d86b8952803400b1245eb220806175084.tar.gz kutter-68ebde0d86b8952803400b1245eb220806175084.tar.xz kutter-68ebde0d86b8952803400b1245eb220806175084.zip |
display: Fix handling of M117 command if lowercase 'm' is used
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display/display.py')
-rw-r--r-- | klippy/extras/display/display.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py index c58bf65f..7f880016 100644 --- a/klippy/extras/display/display.py +++ b/klippy/extras/display/display.py @@ -242,9 +242,10 @@ class PrinterLCD: def cmd_M117(self, params): if '#original' in params: msg = params['#original'] - if not msg.startswith('M117'): + umsg = msg.upper() + if not umsg.startswith('M117'): # Parse out additional info if M117 recd during a print - start = msg.find('M117') + start = umsg.find('M117') end = msg.rfind('*') msg = msg[start:end] if len(msg) > 5: |