aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/uc1701.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-09-03 11:48:22 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-09-03 11:48:22 -0400
commit30013a1fb82c15ba67b15a478ad63d636258cf5b (patch)
treef8ec6af45a80f0dbfedeb23040cb1b7fe75b2db1 /klippy/extras/display/uc1701.py
parenta8d4a7ef46e7871ab712cbad495a157517f89555 (diff)
downloadkutter-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/display/uc1701.py')
-rw-r--r--klippy/extras/display/uc1701.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/display/uc1701.py b/klippy/extras/display/uc1701.py
index c2b86540..32ba7ebf 100644
--- a/klippy/extras/display/uc1701.py
+++ b/klippy/extras/display/uc1701.py
@@ -28,7 +28,7 @@ class UC1701:
self.mcu = mcu
self.spi_oid = self.mcu.create_oid()
self.a0_oid = self.mcu.create_oid()
- self.mcu.add_config_object(self)
+ self.mcu.register_config_callback(self.build_config)
self.glyph_buffer = []
self.spi_xfer_cmd = self.set_pin_cmd = None
self.vram = ([bytearray(128) for i in range(8)],