Skip to content

Commit

Permalink
Disable minimum volume
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium committed Jul 7, 2024
1 parent 252da5b commit 586bb1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions birdnet-pi/rootfs/etc/cont-init.d/31-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ done
################

# If default capture is set at 0%, increase it to 50%
current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true
current_volume="${current_volume:-100}"
# current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true
# current_volume="${current_volume:-100}"

# Set the default microphone volume to 50% if it's currently at 0%
if [[ "$current_volume" -eq 0 ]]; then
amixer sset Capture 70%
bashio::log.warning "Microphone was off, volume set to 70%."
fi
# if [[ "$current_volume" -eq 0 ]]; then
# amixer sset Capture 70%
# bashio::log.warning "Microphone was off, volume set to 70%."
# fi

##############
# CHECK PORT #
Expand Down

0 comments on commit 586bb1d

Please sign in to comment.