From b1956f805babebccfcf5358d903285263fd56a5b Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Tue, 22 Sep 2020 19:19:46 +0200 Subject: [PATCH] some bugfixes --- buzzer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buzzer.sh b/buzzer.sh index 67d72da..e8769b9 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -25,11 +25,11 @@ while true; do if [ "$cmdonairstat" -eq 1 ]; then + cmdonairstat=0 if $(command -v pgrep) "$pgrepplayer" > /dev/null; then $(command -v pkill) "$pgrepplayer" fi - cmdonairstat=0 fi buzzerstat="$($cmdgpio read $buzzgpio)"