some bugfixes

This commit is contained in:
Martin Selbmann 2020-09-22 19:25:43 +02:00
parent 7836973621
commit aaf358dd9a
1 changed files with 3 additions and 4 deletions

View File

@ -26,6 +26,9 @@ while true; do
if [ "$cmdonairstat" -eq 1 ]; then
cmdonairstat=0
if [ "$swupstat" -eq 0 ]; then
$(command -v pkill) "$pgrepplayer"
fi
fi
@ -53,10 +56,6 @@ while true; do
fi
swupstat="$($cmdgpio read $swupgpio)"
if [ "$swupstat" -eq 0 ]; then
$(command -v pkill) "$pgrepplayer"
fi
sleep 0.1
done