diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-09-02 12:51:37 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-09-02 12:53:34 -0400 |
commit | 18b04ffe6815987284130337e5eb4f46f3ba1c69 (patch) | |
tree | cbee425257e596423beae12bc2624bc7e1c603e8 /klippy/toolhead.py | |
parent | 50196c7141d28622794b92c0b4445ad08f01262e (diff) | |
download | kutter-18b04ffe6815987284130337e5eb4f46f3ba1c69.tar.gz kutter-18b04ffe6815987284130337e5eb4f46f3ba1c69.tar.xz kutter-18b04ffe6815987284130337e5eb4f46f3ba1c69.zip |
klippy: Rename lookup_module_objects() to lookup_objects()
Rename the method and support returning all known objects.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r-- | klippy/toolhead.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py index abc0874a..71a2b7e6 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -196,7 +196,8 @@ class ToolHead: def __init__(self, config): self.printer = config.get_printer() self.reactor = self.printer.get_reactor() - self.all_mcus = self.printer.lookup_module_objects('mcu') + self.all_mcus = [ + m for n, m in self.printer.lookup_objects(module='mcu')] self.mcu = self.all_mcus[0] self.move_queue = MoveQueue() self.commanded_pos = [0., 0., 0., 0.] |