mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 21:14:05 -06:00
display: add support for multiple displays
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
6d5ce309a5
commit
aa7d24b0af
3 changed files with 52 additions and 4 deletions
|
@ -7,3 +7,15 @@ import display
|
|||
|
||||
def load_config(config):
|
||||
return display.load_config(config)
|
||||
|
||||
def load_config_prefix(config):
|
||||
if not config.has_section('display'):
|
||||
raise config.error(
|
||||
"A primary [display] section must be defined in printer.cfg "
|
||||
"to use auxilary displays")
|
||||
name = config.get_name().split()[-1]
|
||||
if name == "display":
|
||||
raise config.error(
|
||||
"Section name [display display] is not valid. "
|
||||
"Please choose a different postfix.")
|
||||
return display.load_config(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue