Update config remove battery check

master-psag-fm-only-fsk
Alan Johnston 2 months ago committed by GitHub
parent 1e3c9de225
commit 33a621c6a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -176,13 +176,11 @@ if [ "$1" = "" ]; then
FILE=/home/pi/CubeSatSim/sim_mode_auto FILE=/home/pi/CubeSatSim/sim_mode_auto
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
echo "Simulated Telemetry is automatically turned ON" echo "Simulated Telemetry is automatically turned ON"
elif [[ $(timeout 2 i2cdetect -y 1 | grep -e "44" -e "45") ]]; then # check for battery board sensors # elif [[ $(timeout 2 i2cdetect -y 1 | grep -e "44" -e "45") ]]; then # check for battery board sensors
# Check the exit code of the last command # # Check the exit code of the last command
if [ $? -ne 0 ]; then # if [ $? -ne 0 ]; then
echo "Command succeeded." # echo "Simulated Telemetry is automatically turned ON"
echo "Simulated Telemetry is automatically turned ON"
else else
echo "Command failed!"
echo "Simulated Telemetry is OFF" echo "Simulated Telemetry is OFF"
fi fi
else else

Loading…
Cancel
Save

Powered by TurnKey Linux.