mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 21:14:05 -06:00
gcode: Rename respond() to respond_raw()
Rename the method to make it more clear that it is a low-level call that should be rarely used. Also, change gcode_button.py, hall_filament_width_sensor.py, and tsl1401cl_filament_width_sensor.py to use respond_info() instead of respond_raw(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
61524542d2
commit
64031ab3d7
8 changed files with 31 additions and 31 deletions
|
@ -32,7 +32,7 @@ class HostResponder:
|
|||
msg = msg[5:]
|
||||
else:
|
||||
msg = ''
|
||||
self.gcode.respond("%s %s" % (self.default_prefix, msg))
|
||||
self.gcode.respond_raw("%s %s" % (self.default_prefix, msg))
|
||||
def cmd_RESPOND(self, params):
|
||||
respond_type = self.gcode.get_str('TYPE', params, None)
|
||||
prefix = self.default_prefix
|
||||
|
@ -46,7 +46,7 @@ class HostResponder:
|
|||
" of 'echo', 'command', or 'error'" % (respond_type,))
|
||||
prefix = self.gcode.get_str('PREFIX', params, prefix)
|
||||
msg = self.gcode.get_str('MSG', params, '')
|
||||
self.gcode.respond("%s %s" %(prefix, msg))
|
||||
self.gcode.respond_raw("%s %s" %(prefix, msg))
|
||||
|
||||
def load_config(config):
|
||||
return HostResponder(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue