diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-09-03 11:48:22 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-09-03 11:48:22 -0400 |
commit | 30013a1fb82c15ba67b15a478ad63d636258cf5b (patch) | |
tree | f8ec6af45a80f0dbfedeb23040cb1b7fe75b2db1 /klippy/extras/probe.py | |
parent | a8d4a7ef46e7871ab712cbad495a157517f89555 (diff) | |
download | kutter-30013a1fb82c15ba67b15a478ad63d636258cf5b.tar.gz kutter-30013a1fb82c15ba67b15a478ad63d636258cf5b.tar.xz kutter-30013a1fb82c15ba67b15a478ad63d636258cf5b.zip |
mcu: Rename add_config_object() to register_config_callback()
Change the name of the config registration method and pass an explicit
reference to the callback to the new method. This makes the
relationship between mcu registration and build_config() more clear in
the calling code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/probe.py')
-rw-r--r-- | klippy/extras/probe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index c826e03d..482cfb4a 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -31,7 +31,7 @@ class PrinterProbe: pin = config.get('pin') pin_params = ppins.lookup_pin(pin, can_invert=True, can_pullup=True) mcu = pin_params['chip'] - mcu.add_config_object(self) + mcu.register_config_callback(self.build_config) self.mcu_probe = mcu.setup_pin('endstop', pin_params) if (config.get('activate_gcode', None) is not None or config.get('deactivate_gcode', None) is not None): |