foo
This commit is contained in:
parent
b2266bfbf7
commit
5ef58f58a9
10
buzzer.sh
10
buzzer.sh
|
@ -22,7 +22,12 @@ $cmdgpio mode $swupgpio in
|
||||||
cmdonairstat=0
|
cmdonairstat=0
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
|
if [ "cmdonairstat" -eq 1 ]; then
|
||||||
|
$(command -v pkill) "$pgrepplayer"
|
||||||
|
cmdonairstat=0
|
||||||
|
fi
|
||||||
|
|
||||||
buzzerstat="$($cmdgpio read $buzzgpio)"
|
buzzerstat="$($cmdgpio read $buzzgpio)"
|
||||||
swupstat="$($cmdgpio read $swupgpio)"
|
swupstat="$($cmdgpio read $swupgpio)"
|
||||||
|
|
||||||
|
@ -50,9 +55,6 @@ while true; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
|
|
||||||
$(command -v pkill) "$pgrepplayer"
|
|
||||||
cmdonairstat=0
|
|
||||||
|
|
||||||
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
|
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue