mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 15:14:00 -06:00
klippy: Introduce load_config_prefix() for modules that take parameters
Use both load_config() and load_config_prefix() functions when dynamically loading a module from the extras directory - if the config section name has parameters in it then use load_config_prefix(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
7e3adde542
commit
f4bfce260a
11 changed files with 12 additions and 18 deletions
|
@ -50,5 +50,5 @@ class PrinterMultiPin:
|
|||
for mcu_pin in self.mcu_pins:
|
||||
mcu_pin.set_pwm(print_time, value)
|
||||
|
||||
def load_config(config):
|
||||
def load_config_prefix(config):
|
||||
return PrinterMultiPin(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue