some bugfixes in volume control

This commit is contained in:
Martin Selbmann 2020-09-23 15:52:22 +02:00
parent e9b1105168
commit ec5399c34f
1 changed files with 1 additions and 2 deletions

View File

@ -17,6 +17,7 @@ buzzertimeout=2
strobeduration=1
volumetimeout=0.1
volumedelay=0.1
volumemax=100
playerfull="$(command -v $player) $playerparam"
@ -69,7 +70,6 @@ while true; do
sleep $volumetimeout
done
volumedelay=$((pollingtime * 2))
sleep $volumedelay
elif [ "$volumevalue" -gt 0 ] && [ "$swdownstat" -eq 0 ]; then
@ -81,7 +81,6 @@ while true; do
sleep $volumetimeout
done
volumedelay=$((pollingtime * 2))
sleep $volumedelay
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then