Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
selfisch committed Oct 29, 2017
1 parent 0e7f2ed commit 9187f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions conf/func_usbbtn.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __init__(self):

def source_led_blink(self):
while True:
print(source)
if source == 'Tuner':
p = GPIO.PWM(TunerPin, 1000) # set Frequece to 1KHz
p.start(0) # Duty Cycle = 0
Expand Down
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@

except (SystemExit):
logger.info("Anwendung beendet")
destroy()
usbbtn.destroy_led_blink()
exit()
except (KeyboardInterrupt):
logger.info("via Tastatur beendet")
destroy()
usbbtn.destroy_led_blink()
exit()
except Exception as e:
logger.error("main crashed {0}".format(str(e)))
logger.exception("Error")
destroy()
usbbtn.destroy_led_blink()
raise
except:
logger.info("Unbekannter Fehler:", sys.exc_info()[0])
destroy()
usbbtn.destroy_led_blink()
raise
# else:
# pass

0 comments on commit 9187f9e

Please sign in to comment.