bar
This commit is contained in:
parent
7c342febae
commit
8726b98ac2
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue