From 8916cd6054814e861e0ad30d73adab3d1515c728 Mon Sep 17 00:00:00 2001 From: MikonosII Date: Fri, 7 Jul 2017 20:30:53 -0700 Subject: [PATCH 1/2] fixed typos --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d9f7d22..945fbc9 100755 --- a/install.sh +++ b/install.sh @@ -136,7 +136,7 @@ show_menu () { fi ;; 10) - confirmAnswer "Are you sure you want to reboo the Raspberry Pi?" + confirmAnswer "Are you sure you want to reboot the Raspberry Pi?" if [ $? = 0 ]; then sudo reboot else From 1d586b353ed1ed5f8fe4902247739aa7850d9c21 Mon Sep 17 00:00:00 2001 From: IndyJoeA Date: Thu, 13 Jul 2017 20:37:16 -0400 Subject: [PATCH 2/2] Make buzzer GPIO an Int Fixes buzzer initialization errors --- modules/buzzer/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/buzzer/__init__.py b/modules/buzzer/__init__.py index 4fc5a9a..74a9ec6 100644 --- a/modules/buzzer/__init__.py +++ b/modules/buzzer/__init__.py @@ -13,12 +13,13 @@ class Buzzer(object): def __init__(self, gpio): try: cbpi.app.logger.info("INIT BUZZER NOW GPIO%s" % gpio) - self.gpio = gpio + self.gpio = int(gpio) GPIO.setmode(GPIO.BCM) - GPIO.setup(gpio, GPIO.OUT) + GPIO.setup(self.gpio, GPIO.OUT) self.state = True cbpi.app.logger.info("BUZZER SETUP OK") except Exception as e: + cbpi.app.logger.info("BUZZER EXCEPTION %s" % str(e)) self.state = False def beep(self):