mirror of
https://github.com/Dark98/Ender-3_V3_KE_Klipper.git
synced 2026-07-03 00:38:41 +00:00
20 lines
799 B
Python
20 lines
799 B
Python
# Package definition for the extras/display directory
|
|
#
|
|
# Copyright (C) 2018 Kevin O'Connor <kevin@koconnor.net>
|
|
#
|
|
# This file may be distributed under the terms of the GNU GPLv3 license.
|
|
from . 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(
|
|
"""{"code":"key192", "msg": "A primary [display] section must be defined in printer.cfg to use auxilary displays", "values": []}""")
|
|
name = config.get_name().split()[-1]
|
|
if name == "display":
|
|
raise config.error(
|
|
"""{"code":"key193", "msg": "Section name [display display] is not valid. Please choose a different postfix.", "values": []}""")
|
|
return display.load_config(config)
|