From b5e4f3d20453b2720fbb2e21b1585637048271f8 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Wed, 2 Jun 2021 16:45:27 +0200 Subject: gcode: Update gcode descriptions (#4335) Add help description to HELP Add help description to RESPOND Add help description to MEASURE_AXES_NOISE, TEST_RESONANCES and SHAPER_CALIBRATE Add help description to PAUSE, RESUME, CLEAR_PAUSE and CANCEL_PRINT Add help description to GET_POSITION Add help description to SET_RETRACTION and GET_RETRACTION Signed-off-by: Stefan Dej --- klippy/extras/gcode_move.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'klippy/extras/gcode_move.py') diff --git a/klippy/extras/gcode_move.py b/klippy/extras/gcode_move.py index 77087162..ecdadc43 100644 --- a/klippy/extras/gcode_move.py +++ b/klippy/extras/gcode_move.py @@ -34,7 +34,8 @@ class GCodeMove: gcode.register_command(cmd, func, False, desc) gcode.register_command('G0', self.cmd_G1) gcode.register_command('M114', self.cmd_M114, True) - gcode.register_command('GET_POSITION', self.cmd_GET_POSITION, True) + gcode.register_command('GET_POSITION', self.cmd_GET_POSITION, True, + desc=self.cmd_GET_POSITION_help) self.Coord = gcode.Coord # G-Code coordinate manipulation self.absolute_coord = self.absolute_extrude = True @@ -239,6 +240,8 @@ class GCodeMove: speed = gcmd.get_float('MOVE_SPEED', self.speed, above=0.) self.last_position[:3] = state['last_position'][:3] self.move_with_transform(self.last_position, speed) + cmd_GET_POSITION_help = ( + "Return information on the current location of the toolhead") def cmd_GET_POSITION(self, gcmd): toolhead = self.printer.lookup_object('toolhead', None) if toolhead is None: -- cgit v1.2.3-70-g09d2