From b4f03e8363b66cea84e1b84d58f05a6365b0ff0e Mon Sep 17 00:00:00 2001
From: Kevin O'Connor <kevin@koconnor.net>
Date: Sun, 8 Jul 2018 10:12:23 -0400
Subject: [PATCH] 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>
---
 docs/G-Codes.md                  | 7 +++++++
 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 0a5fa7e0e..b921e3cef 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 dcae962ac..80a4515ce 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']