diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-04-04 12:07:41 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-04-04 12:26:39 -0400 |
commit | 4eeb43b191e3d928cf817d3be0350711dc05526d (patch) | |
tree | ff125436b053e70aac5c0f8ce3a668f90dde6fc5 /klippy/mcu.py | |
parent | a4439b93b79395cbc1cf5d39f856701922dfdd84 (diff) | |
download | kutter-4eeb43b191e3d928cf817d3be0350711dc05526d.tar.gz kutter-4eeb43b191e3d928cf817d3be0350711dc05526d.tar.xz kutter-4eeb43b191e3d928cf817d3be0350711dc05526d.zip |
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>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r-- | klippy/mcu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py index 8fcd3918..c124bd6d 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -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 = [] |