@ -176,7 +176,7 @@ if [ "$1" = "" ]; then
FILE=/home/pi/CubeSatSim/sim_mode_auto
if [ -f "$FILE" ]; then
echo "Simulated Telemetry is automatically turned ON"
elif [[ $(timeout 2 i2cdetect -y 1 | grep -e "43" -e "44") ]]; then
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
if [ $? -ne 0 ]; then
echo "Command failed!"
Powered by TurnKey Linux.