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>
This commit is contained in:
@@ -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)],
|
||||
|
||||
Reference in New Issue
Block a user