diff --git a/modules/led.sh b/modules/led.sh index e95cc938d..b04123f5c 100644 --- a/modules/led.sh +++ b/modules/led.sh @@ -258,7 +258,9 @@ function led { if [ "$color" = "green" ]; then echo -e "$green: $newValue" + echo -e "$red: $currentRed" elif [ "$color" = "red" ]; then + echo -e "$green: $currentGreen" echo -e "$red: $newValue" fi fi @@ -605,7 +607,7 @@ function labourday { current_green=$(led "green") current_red=$(led "red") - set_brightness 1 0 + set_brightness 1 0 for i in {0..1}; do for j in {1..5}; do set_brightness 0 0 @@ -764,9 +766,9 @@ function kecak { set_brightness 0 1 && sleep 0.1 set_brightness 0 0 set_brightness 1 1 && sleep 0.1 - set_brightness 1 0 + set_brightness 1 0 done - + for i in {0..1}; do set_brightness 0 1 && set_brightness 1 1 && sleep 1 set_brightness 0 0 && set_brightness 1 0 && sleep 1 @@ -776,7 +778,7 @@ function kecak { set_brightness 0 1 && sleep 0.1 set_brightness 0 0 set_brightness 1 1 && sleep 0.1 - set_brightness 1 0 + set_brightness 1 0 done for i in {0..1}; do @@ -805,7 +807,7 @@ function sandstorm { sleep 0.125 done set_brightness 0 1 && set_brightness 1 0 # green on and red off - sleep 1.0 + sleep 1.0 x=$(( x + 1 )) done @@ -822,7 +824,7 @@ function sandstorm { sleep .15 x=$(( x + 1 )) done - + x=0 while [ $x -le 3 ]; do for ((i=0;i<5;i++)); do @@ -848,7 +850,7 @@ function sandstorm { sleep .10 x=$(( x + 1 )) done - + x=0 while [ $x -le 1 ]; do for ((i=0;i<6;i++)); do diff --git a/package.json b/package.json index 1a7ec81be..c2fa884c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@treehouses/cli", - "version": "1.25.45", + "version": "1.25.46", "remote": "4000", "description": "Thin command-line interface for Raspberry Pi low level configuration.", "main": "cli.sh",