From 68ebde0d86b8952803400b1245eb220806175084 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 27 Dec 2018 20:51:41 -0500 Subject: [PATCH] display: Fix handling of M117 command if lowercase 'm' is used Signed-off-by: Kevin O'Connor --- klippy/extras/display/display.py | 5 +++-- 1 file 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: