diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-06-09 12:18:16 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-06-09 12:19:53 -0400 |
commit | 467e8e6f40445005cc1da4fb3a7ec1ad0ed45479 (patch) | |
tree | 6235bdcb664d1e640e64506135f3fa26366b6201 /klippy/extras/display | |
parent | 68fcbe2a62c2ed8ddb97b3935ab89bb65e7e8f8c (diff) | |
download | kutter-467e8e6f40445005cc1da4fb3a7ec1ad0ed45479.tar.gz kutter-467e8e6f40445005cc1da4fb3a7ec1ad0ed45479.tar.xz kutter-467e8e6f40445005cc1da4fb3a7ec1ad0ed45479.zip |
display: Default DISPLAY=display in SET_DISPLAY_GROUP command
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display')
-rw-r--r-- | klippy/extras/display/display.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py index a7a2621f..7115877e 100644 --- a/klippy/extras/display/display.py +++ b/klippy/extras/display/display.py @@ -103,10 +103,14 @@ class PrinterLCD: self.printer.register_event_handler("klippy:ready", self.handle_ready) self.screen_update_timer = self.reactor.register_timer( self.screen_update_event) + # Register g-code commands gcode = self.printer.lookup_object("gcode") - gcode.register_mux_command( - 'SET_DISPLAY_GROUP', 'DISPLAY', name, self.cmd_SET_DISPLAY_GROUP, - desc=self.cmd_SET_DISPLAY_GROUP_help) + gcode.register_mux_command('SET_DISPLAY_GROUP', 'DISPLAY', name, + self.cmd_SET_DISPLAY_GROUP, + desc=self.cmd_SET_DISPLAY_GROUP_help) + if name == 'display': + gcode.register_mux_command('SET_DISPLAY_GROUP', 'DISPLAY', None, + self.cmd_SET_DISPLAY_GROUP) # Configurable display def _parse_glyph(self, config, glyph_name, data, width, height): glyph_data = [] |