change sleep for volume control

This commit is contained in:
Martin Selbmann 2020-09-23 15:44:30 +02:00
parent 0e52c8d26c
commit 254ab42c47
1 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,8 @@ while true; do
buzzerstat="$($cmdgpio read $buzzergpio)"
sleep $volumetimeout
done
sleep $((pollingtime * 2))
elif [ "$volumevalue" -gt 0 ] && [ "$swdownstat" -eq 0 ]; then
@ -78,6 +80,8 @@ while true; do
sleep $volumetimeout
done
sleep $((pollingtime * 2))
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
sleep $pollingtime