diff --git a/buzzer.sh b/buzzer.sh index f4f853b..878a131 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -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