This commit is contained in:
Martin Selbmann 2020-09-19 20:23:40 +02:00
parent 7c342febae
commit 8726b98ac2
1 changed files with 4 additions and 4 deletions

View File

@ -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)"