This commit is contained in:
Martin Selbmann 2020-09-22 20:23:21 +02:00
parent b2266bfbf7
commit 5ef58f58a9
1 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,12 @@ $cmdgpio mode $swupgpio in
cmdonairstat=0
while true; do
if [ "cmdonairstat" -eq 1 ]; then
$(command -v pkill) "$pgrepplayer"
cmdonairstat=0
fi
buzzerstat="$($cmdgpio read $buzzgpio)"
swupstat="$($cmdgpio read $swupgpio)"
@ -50,9 +55,6 @@ while true; do
sleep 0.1
done
$(command -v pkill) "$pgrepplayer"
cmdonairstat=0
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
sleep 0.1