mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 03:07:56 -06:00
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>
This commit is contained in:
parent
50196c7141
commit
18b04ffe68
2 changed files with 11 additions and 7 deletions
|
@ -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.]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue