diff options
author | Stefan Dej <meteyou@gmail.com> | 2021-06-02 16:45:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 10:45:27 -0400 |
commit | b5e4f3d20453b2720fbb2e21b1585637048271f8 (patch) | |
tree | 7b992ca01ca217ec342c9e839c374ba778017098 /klippy/extras/gcode_move.py | |
parent | 55be26097f6a287a73db523f4d11556add8970e6 (diff) | |
download | kutter-b5e4f3d20453b2720fbb2e21b1585637048271f8.tar.gz kutter-b5e4f3d20453b2720fbb2e21b1585637048271f8.tar.xz kutter-b5e4f3d20453b2720fbb2e21b1585637048271f8.zip |
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 <meteyou@gmail.com>
Diffstat (limited to 'klippy/extras/gcode_move.py')
-rw-r--r-- | klippy/extras/gcode_move.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |