mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-14 10:17:56 -06:00
pins: Remove module level get_printer_pins() and setup_pin() functions
Most callers did a lookup of the pins module via printer.lookup_object("pins"). Use that as the standard method and remove these less frequently used methods. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a4439b93b7
commit
4eeb43b191
9 changed files with 36 additions and 44 deletions
|
@ -425,7 +425,7 @@ class MCU:
|
|||
self._is_shutdown = self._is_timeout = False
|
||||
self._shutdown_msg = ""
|
||||
# Config building
|
||||
pins.get_printer_pins(printer).register_chip(self._name, self)
|
||||
printer.lookup_object('pins').register_chip(self._name, self)
|
||||
self._oid_count = 0
|
||||
self._config_objects = []
|
||||
self._init_cmds = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue