mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-09 18:52:40 +02:00
Move buzzer init order to fall after config init.
Buzzer can't initialise with correct gpio pin as the config hasn't been initialised yet.
This commit is contained in:
@@ -41,7 +41,7 @@ class Buzzer(object):
|
||||
|
||||
start_new_thread(play, (self.sound,))
|
||||
|
||||
@cbpi.initalizer(order=0)
|
||||
@cbpi.initalizer(order=1)
|
||||
def init(cbpi):
|
||||
gpio = cbpi.get_config_parameter("buzzer", 16)
|
||||
cbpi.buzzer = Buzzer(gpio)
|
||||
|
||||
Reference in New Issue
Block a user