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 dbf76f5 commit 48fd031
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion led_sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ elif [ "$TYPE" == "warning" ]; then
debugMessage "LED Warning $MODIFIER"
fi
elif [ "$TYPE" == "error" ]; then
if [ -z "$MODIFIER" ]; then
echo "Missing value for Error mode."
else
DELAY1="50"
DELAY2="100"
COLOR1="green"
COLOR2="red"
BLINK_LED_ASYNC_MULTI_2
debugMessage "LED Error $MODIFIER"
fi
elif [ "$TYPE" == "flashing" ]; then
if [ -z "$MODIFIER" ]; then
echo "Missing value for Error mode."
else
Expand All @@ -203,6 +214,6 @@ elif [ "$TYPE" == "error" ]; then
COLOR1="green"
COLOR2="red"
BLINK_LED_ASYNC_MULTI_SWITCHING
debugMessage "LED Warning $MODIFIER"
debugMessage "LED $MODIFIER"
fi
fi

0 comments on commit 48fd031

Please sign in to comment.