fixed if statements
This commit is contained in:
@@ -149,7 +149,7 @@ if [ ! -z "${CARD_READER[0]}" ]; then
|
||||
gpio write 19 1
|
||||
gpio write 13 1
|
||||
gpio write 6 1
|
||||
if [ "$COUNTER" -eq 3 ]; then
|
||||
if [ "$COUNTER" -eq 4 ]; then
|
||||
blink 5 0.25 &
|
||||
blink_pid5=$!
|
||||
COUNTER=$((COUNTER+1))
|
||||
@@ -158,7 +158,10 @@ if [ ! -z "${CARD_READER[0]}" ]; then
|
||||
|
||||
sleep 1
|
||||
done
|
||||
if [ "$COUNTER" -eq 5 ]; then
|
||||
kill $blink_pid5 2> /dev/null
|
||||
fi
|
||||
|
||||
gpio write 26 1
|
||||
gpio write 19 1
|
||||
gpio write 13 1
|
||||
|
||||
Reference in New Issue
Block a user