mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
python 3 migration
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import time
|
||||
from thread import start_new_thread
|
||||
#from threading import start_new_thread
|
||||
from modules import cbpi
|
||||
|
||||
try:
|
||||
@@ -44,8 +44,8 @@ class Buzzer(object):
|
||||
time.sleep(i)
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
start_new_thread(play, (self.sound,))
|
||||
## TODO
|
||||
#start_new_thread(play, (self.sound,))
|
||||
|
||||
@cbpi.initalizer(order=1)
|
||||
def init(cbpi):
|
||||
|
||||
Reference in New Issue
Block a user