diff --git a/scripts/pifunklite.py b/scripts/pifunklite.py index a2b240f..124d486 100644 --- a/scripts/pifunklite.py +++ b/scripts/pifunklite.py @@ -328,16 +328,16 @@ def logger (): play_mic () except KeyboardInterrupt: - GPIO.cleanup() ## clean up GPIO on CTRL+C exit - - GPIO.cleanup() ## clean up GPIO on normal exit + GPIO.cleanup () ## clean up GPIO on CTRL+C exit except: - print("\nERROR\n") + print ("\nERROR\n") pass + +GPIO.cleanup () ## clean up GPIO on normal exit + ##------------------------------------------------------------------------------ ## test-area -#nosetests print ("\nEnd of script!\n")