diff --git a/led_sys.sh b/led_sys.sh index 0af6bbb..402031c 100644 --- a/led_sys.sh +++ b/led_sys.sh @@ -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 @@ -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