aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/hd44780.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/hd44780.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/hd44780.py')
-rw-r--r--klippy/extras/display/hd44780.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/display/hd44780.py b/klippy/extras/display/hd44780.py
index 69fdcbb8..e4fd971e 100644
--- a/klippy/extras/display/hd44780.py
+++ b/klippy/extras/display/hd44780.py
@@ -33,7 +33,7 @@ class HD44780:
self.pins = [pin_params['pin'] for pin_params in pins]
self.mcu = mcu
self.oid = self.mcu.create_oid()
- self.mcu.add_config_object(self)
+ self.mcu.register_config_callback(self.build_config)
self.send_data_cmd = self.send_cmds_cmd = None
# framebuffers
self.text_framebuffer = (bytearray(' '*80), bytearray('~'*80), 0x80)