Skip to content

Commit

Permalink
Update led_sys.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Apr 12, 2024
1 parent 3188d11 commit 379c3ec
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions led_sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,16 @@ LED_OFF() {
echo 0 > /sys/class/leds/openhd-x20dev:blue:usr/brightness
debugMessage "LEDs off"
elif [ "$PLATFORM" == "pi" ]; then
echo 0 > /sys/class/leds/ACT/brightness
echo 0 > /sys/class/leds/PWR/brightness
debugMessage "LEDs off"
if [ "$COLOR" == "green" ]; then
echo 0 > /sys/class/leds/ACT/brightness
debugMessage "Green LED off"
elif [ "$COLOR" == "red" ]; then
echo 0 > /sys/class/leds/PWR/brightness
debugMessage "Red LED off"
else
echo 0 > /sys/class/leds/ACT/brightness
echo 0 > /sys/class/leds/PWR/brightness
fi
fi
}

Expand Down Expand Up @@ -206,7 +213,7 @@ elif [ "$TYPE" == "error" ]; then
debugMessage "LED Error $MODIFIER"
fi
elif [ "$TYPE" == "flashing" ]; then
DELAY1="50"
DELAY1="100"
DELAY2="100"
COLOR1="green"
COLOR2="red"
Expand Down

0 comments on commit 379c3ec

Please sign in to comment.