Update config add check for battery sensor

master-psag-fm-only-fsk
Alan Johnston 2 weeks ago committed by GitHub
parent eeb62475eb
commit ee652d0a16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -177,6 +177,17 @@ if [ "$1" = "" ]; then
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
echo "Simulated Telemetry is automatically turned ON" echo "Simulated Telemetry is automatically turned ON"
else else
if [[ $(timeout 2 i2cdetect -y 1 | grep -e "43" -e "44") ]]; then
# Check the exit code of the last command
if [ $? -ne 0 ]; then
echo "Command failed!"
echo "Simulated Telemetry is OFF"
else
echo "Command succeeded."
echo "Simulated Telemetry is automatically turned ON"
fi
echo "Simulated Telemetry is OFF" echo "Simulated Telemetry is OFF"
fi fi
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.