This commit is contained in:
Martin Selbmann 2020-09-19 20:23:40 +02:00
parent 7c342febae
commit 8726b98ac2

View file

@ -19,6 +19,10 @@ cmdonairstat=0
while true; do while true; do
if [ "$cmdonairstat" -eq 1 ]; then
cmdonairstat=0
fi
buzzerstat="$($cmdgpio read $buzzgpio)" buzzerstat="$($cmdgpio read $buzzgpio)"
swupstat="$($cmdgpio read $swupgpio)" swupstat="$($cmdgpio read $swupgpio)"
@ -35,10 +39,6 @@ while true; do
if [ "$cmdonairstat" -eq 0 ]; then if [ "$cmdonairstat" -eq 0 ]; then
echo "On air!" echo "On air!"
cmdonairstat=1 cmdonairstat=1
elif [ "$swupstat" -eq 0 ]; then
cmdonairstat=0
fi fi
swupstat="$($cmdgpio read $swupgpio)" swupstat="$($cmdgpio read $swupgpio)"