Update config -L to % and reset to 75% with -g

pull/449/head
Alan Johnston 3 weeks ago committed by GitHub
parent 9c91d07588
commit d9c246add7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1600,7 +1600,7 @@ elif [ "$1" = "-L" ]; then
fi fi
if [ -z "$param2" ] ; then if [ -z "$param2" ] ; then
echo -e "Enter microphone level (integer 0 - 255): " echo -e "Enter microphone level (percent 0 - 100): "
read mic read mic
else else
mic="$param2" mic="$param2"
@ -1610,7 +1610,7 @@ elif [ "$1" = "-L" ]; then
# systemctl --user stop wireplumber # systemctl --user stop wireplumber
echo "Updating mic level to" $mic "%" echo "Updating mic level to" $mic "%"
# value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set MicVolume $mic # value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set MicVolume $mic
value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c $USBCARD sset 'MicVolume' $mic value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c $USBCARD sset 'MicVolume' $mic%
# systemctl --user start wireplumber # systemctl --user start wireplumber
else else
@ -1637,6 +1637,8 @@ elif [ "$1" = "-g" ]; then
sudo systemctl stop pushbutton sudo systemctl stop pushbutton
sudo systemctl stop OliveTin sudo systemctl stop OliveTin
/home/pi/CubeSatSim/config -L 75
echo "AMSAT 0 0 0 no 3 434.9 435 no 0 0 no 60 no" > /home/pi/CubeSatSim/sim.cfg echo "AMSAT 0 0 0 no 3 434.9 435 no 0 0 no 60 no" > /home/pi/CubeSatSim/sim.cfg
echo "434900000 435000000" > /home/pi/CubeSatSim/frequency.txt echo "434900000 435000000" > /home/pi/CubeSatSim/frequency.txt

Loading…
Cancel
Save

Powered by TurnKey Linux.