diff --git a/buzzer.sh b/buzzer.sh index 178293c..d61f6cf 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -29,8 +29,18 @@ while true; do elif [ "$swupstat" -eq 1 ]; then while [ "$swupstat" -eq 1 ]; do - echo "On air!" + + if [ "$cmdonairstat" -eq 0 ]; then + echo "On air!" + cmdonairstat=1 + + elif [ "$swupstat" -eq 0 ]; then + cmdonairstat=0 + + fi + swupstat="$($cmdgpio read $swupgpio)" + sleep 0.1 done