From 64031ab3d7c5a857d5bdaa975752112f2da38a49 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 24 Apr 2020 15:54:18 -0400 Subject: 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 --- klippy/extras/bed_mesh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'klippy/extras/bed_mesh.py') diff --git a/klippy/extras/bed_mesh.py b/klippy/extras/bed_mesh.py index f6b53f96..c2a6e390 100644 --- a/klippy/extras/bed_mesh.py +++ b/klippy/extras/bed_mesh.py @@ -187,7 +187,8 @@ class BedMesh: self.gcode.respond_info("Bed has not been probed") else: self.bmc.print_probed_positions(self.gcode.respond_info) - self.z_mesh.print_mesh(self.gcode.respond, self.horizontal_move_z) + self.z_mesh.print_mesh(self.gcode.respond_raw, + self.horizontal_move_z) cmd_BED_MESH_MAP_help = "Serialize mesh and output to terminal" def cmd_BED_MESH_MAP(self, params): if self.z_mesh is not None: @@ -196,8 +197,7 @@ class BedMesh: 'mesh_min': (params['min_x'], params['min_y']), 'mesh_max': (params['max_x'], params['max_y']), 'z_positions': self.bmc.probed_matrix} - self.gcode.respond( - "mesh_map_output " + json.dumps(outdict)) + self.gcode.respond_raw("mesh_map_output " + json.dumps(outdict)) else: self.gcode.respond_info("Bed has not been probed") cmd_BED_MESH_CLEAR_help = "Clear the Mesh so no z-adjusment is made" -- cgit v1.2.3-70-g09d2