diff --git a/devtimer.py b/devtimer.py index 23ab8ff..beabb0e 100755 --- a/devtimer.py +++ b/devtimer.py @@ -239,11 +239,11 @@ def beep(): - for repeat in range(10): + for repeat in range(2): wiringpi.digitalWrite(BEEPER, 1) - sleep(0.02) + sleep(0.2) wiringpi.digitalWrite(BEEPER, 0) - sleep(0.02) + sleep(0.2) if DEBUG: print("Beep!") @@ -258,6 +258,7 @@ if time() - footsw_pressed.lastISR >= DEBOUNCE_TIME: + beep() # Let user know we're starting/stopping RUNNING = not RUNNING footsw_pressed.lastISR = time()