Skip to content

Commit

Permalink
Merge pull request Manuel83#1 from Manuel83/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
swimIan authored Jul 16, 2017
2 parents 544e9bb + ca9575a commit 9c44d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions modules/buzzer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9c44d3f

Please sign in to comment.