some buxfixes in volume control

This commit is contained in:
Martin Selbmann 2020-09-23 15:47:53 +02:00
parent 254ab42c47
commit e9b1105168
1 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,8 @@ while true; do
sleep $volumetimeout
done
sleep $((pollingtime * 2))
volumedelay=$((pollingtime * 2))
sleep $volumedelay
elif [ "$volumevalue" -gt 0 ] && [ "$swdownstat" -eq 0 ]; then
@ -80,7 +81,8 @@ while true; do
sleep $volumetimeout
done
sleep $((pollingtime * 2))
volumedelay=$((pollingtime * 2))
sleep $volumedelay
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
sleep $pollingtime