diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-07-08 10:12:23 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-07-08 10:12:23 -0400 |
commit | b4f03e8363b66cea84e1b84d58f05a6365b0ff0e (patch) | |
tree | e98784393143468c9104d7ffcc844f648c43af13 | |
parent | 649d7c54f0ec0bab03c372ced7fc331d8bc8919a (diff) | |
download | kutter-b4f03e8363b66cea84e1b84d58f05a6365b0ff0e.tar.gz kutter-b4f03e8363b66cea84e1b84d58f05a6365b0ff0e.tar.xz kutter-b4f03e8363b66cea84e1b84d58f05a6365b0ff0e.zip |
docs: Add display g-code commands to docs/G-Codes.md
Add M117 and M73 to the list of supported G-Codes.
Also, remove M117 from the list of commands reported by the HELP
command as that command is typically only used to list "extended
g-code" commands.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | docs/G-Codes.md | 7 | ||||
-rw-r--r-- | klippy/extras/display/display.py | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 0a5fa7e0..b921e3ce 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -48,6 +48,13 @@ Klipper also supports the following standard G-Code commands if the - Set SD position: `M26 S<offset>` - Report SD print status: `M27` +## G-Code display commands + +The following standard G-Code commands are available if a "display" +config section is enabled: +- Display Message: `M117 <message>` +- Set build percentage: `M73 P<percent>` + # Extended G-Code Commands Klipper uses "extended" G-Code commands for general configuration and diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py index dcae962a..80a4515c 100644 --- a/klippy/extras/display/display.py +++ b/klippy/extras/display/display.py @@ -41,7 +41,7 @@ class PrinterLCD: self.msg_time = None self.message = None self.gcode.register_command('M73', self.cmd_M73) - self.gcode.register_command('M117', self.cmd_M117, desc=self.cmd_M117_help) + self.gcode.register_command('M117', self.cmd_M117) # Load glyphs self.load_glyph(self.BED1_GLYPH, icons.heat1_icon) self.load_glyph(self.BED2_GLYPH, icons.heat2_icon) @@ -253,7 +253,6 @@ class PrinterLCD: def cmd_M73(self, params): self.progress = self.gcode.get_int('P', params, minval=0, maxval=100) self.prg_time = M73_TIMEOUT - cmd_M117_help = "Show Message on Display" def cmd_M117(self, params): if '#original' in params: msg = params['#original'] |