bar
This commit is contained in:
parent
7c342febae
commit
8726b98ac2
1 changed files with 4 additions and 4 deletions
|
@ -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)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue