Skip to content

Commit

Permalink
chore: improve LED color on listener mute
Browse files Browse the repository at this point in the history
during initial configuration, config color (orange) won't show if muted
  • Loading branch information
duhow committed Jan 3, 2025
1 parent 39fdc79 commit f1c7e03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/volume
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ if [ "$CURVOL" -ge 0 ] && [ "$CURVOL" -le 100 ]; then
( sleep $WAIT_TIME; \
if [ -f "$TMPWAIT" ] && [ "$(cat ${TMPWAIT} 2>/dev/null)" -eq "$(cut -d'.' -f1 /proc/uptime)" ]; then \
rm ${TMPWAIT} &>/dev/null; \
for LED in $(seq 0 $LEDMAX); do echo ${LED} ${BLACK} > ${LEDSYS}; done \
/etc/init.d/listener status >/dev/null && { \
for LED in $(seq 0 $LEDMAX); do echo ${LED} ${BLACK} > ${LEDSYS}; done; \
} || (shut_led 7; show_led 7) ; \
fi \
) &
fi
4 changes: 4 additions & 0 deletions bin/wifi_connect
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ network={
}
EOF

# if mute, conflicts color with config (orange)
shut_led 7

# required on new firmware versions
touch /data/status/config_done

Expand All @@ -59,6 +62,7 @@ for n in `seq 10`; do
echo "Configuration available at:"
echo "http://${IP_ADDRESS}:80"
fi
/etc/init.d/listener status >/dev/null || (shut_led 7; show_led 7)
exit 0
fi

Expand Down

0 comments on commit f1c7e03

Please sign in to comment.