From 8726b98ac2d430e4ae4304205b216bd626b05a15 Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Sat, 19 Sep 2020 20:23:40 +0200 Subject: [PATCH] bar --- buzzer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buzzer.sh b/buzzer.sh index 4ea4307..d423e94 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -18,6 +18,10 @@ $cmdgpio mode $swupgpio in cmdonairstat=0 while true; do + + if [ "$cmdonairstat" -eq 1 ]; then + cmdonairstat=0 + fi buzzerstat="$($cmdgpio read $buzzgpio)" swupstat="$($cmdgpio read $swupgpio)" @@ -35,10 +39,6 @@ while true; do if [ "$cmdonairstat" -eq 0 ]; then echo "On air!" cmdonairstat=1 - - elif [ "$swupstat" -eq 0 ]; then - cmdonairstat=0 - fi swupstat="$($cmdgpio read $swupgpio)"