diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-03 12:53:11 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-02-03 12:53:11 -0500 |
commit | f4bfce260a2ea38209646957d7c423db5bb54faa (patch) | |
tree | 94bbfb8b1ce3555ccc1ef773f3e5399c7f141c7a /klippy/extras/ad5206.py | |
parent | 7e3adde542b178bb709d4de0a3dcb73e5c2afd43 (diff) | |
download | kutter-f4bfce260a2ea38209646957d7c423db5bb54faa.tar.gz kutter-f4bfce260a2ea38209646957d7c423db5bb54faa.tar.xz kutter-f4bfce260a2ea38209646957d7c423db5bb54faa.zip |
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>
Diffstat (limited to 'klippy/extras/ad5206.py')
-rw-r--r-- | klippy/extras/ad5206.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/ad5206.py b/klippy/extras/ad5206.py index f71655df..1f30c89a 100644 --- a/klippy/extras/ad5206.py +++ b/klippy/extras/ad5206.py @@ -26,5 +26,5 @@ class ad5206: self.mcu.add_config_cmd( "send_spi_message pin=%s msg=%02x%02x" % (self.pin, i, val)) -def load_config(config): +def load_config_prefix(config): return ad5206(config) |