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` - 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 ` +- Set build percentage: `M73 P` + # 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']