aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/bed_mesh.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-04-24 15:54:18 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-04-24 15:54:18 -0400
commit64031ab3d7c5a857d5bdaa975752112f2da38a49 (patch)
tree9b2133ae16967a6464f44779c98120c38c99dd0d /klippy/extras/bed_mesh.py
parent61524542d20e50c4866836d6ed23ca03521ffb15 (diff)
downloadkutter-64031ab3d7c5a857d5bdaa975752112f2da38a49.tar.gz
kutter-64031ab3d7c5a857d5bdaa975752112f2da38a49.tar.xz
kutter-64031ab3d7c5a857d5bdaa975752112f2da38a49.zip
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>
Diffstat (limited to 'klippy/extras/bed_mesh.py')
-rw-r--r--klippy/extras/bed_mesh.py6
1 files changed, 3 insertions, 3 deletions
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"