diff options
Diffstat (limited to 'klippy/extras/respond.py')
-rw-r--r-- | klippy/extras/respond.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/klippy/extras/respond.py b/klippy/extras/respond.py index 0adbc4bf..fb6eb194 100644 --- a/klippy/extras/respond.py +++ b/klippy/extras/respond.py @@ -22,17 +22,7 @@ class HostResponder: gcode.register_command('RESPOND', self.cmd_RESPOND, True, desc=self.cmd_RESPOND_help) def cmd_M118(self, gcmd): - msg = gcmd.get_commandline() - umsg = msg.upper() - if not umsg.startswith('M118'): - # Parse out additional info if M118 recd during a print - start = umsg.find('M118') - end = msg.rfind('*') - msg = msg[start:end] - if len(msg) > 5: - msg = msg[5:] - else: - msg = '' + msg = gcmd.get_raw_command_parameters() gcmd.respond_raw("%s %s" % (self.default_prefix, msg)) cmd_RESPOND_help = ("Echo the message prepended with a prefix") def cmd_RESPOND(self, gcmd): |