some bugfixes in volume control
This commit is contained in:
parent
e9b1105168
commit
ec5399c34f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue