diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-05-05 14:10:30 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-05-08 11:05:14 -0400 |
commit | 787ed452c2abe3bad81ffaf732b0b2609e3534bb (patch) | |
tree | efe45de24864649b4219e6a45c1ebfb82574fe28 /klippy/extras/buttons.py | |
parent | 8472c57b594e6f8ff26d7be32b4bdd5072ed439a (diff) | |
download | kutter-787ed452c2abe3bad81ffaf732b0b2609e3534bb.tar.gz kutter-787ed452c2abe3bad81ffaf732b0b2609e3534bb.tar.xz kutter-787ed452c2abe3bad81ffaf732b0b2609e3534bb.zip |
klippy: Rename try_load_module() to load_object()
Rename try_load_module() so that it uses consistent naming for
"printer objects". Change the function to raise an error by default
if the specified module does not exist.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/buttons.py')
-rw-r--r-- | klippy/extras/buttons.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/buttons.py b/klippy/extras/buttons.py index 9eeee78e..3e61b981 100644 --- a/klippy/extras/buttons.py +++ b/klippy/extras/buttons.py @@ -207,7 +207,7 @@ class RotaryEncoder: class PrinterButtons: def __init__(self, config): self.printer = config.get_printer() - self.printer.try_load_module(config, 'query_adc') + self.printer.load_object(config, 'query_adc') self.mcu_buttons = {} self.adc_buttons = {} def register_adc_button(self, pin, min_val, max_val, pullup, callback): |