Dropped unnecessary "on" command.
This commit is contained in:
parent
90933f91a4
commit
4ff0369e76
1 changed files with 2 additions and 1 deletions
3
wled
3
wled
|
@ -59,7 +59,7 @@ case "$2" in
|
||||||
api_resp=$(curl_cmd --json "{'bri':$bright}" "http://$wled_host/json")
|
api_resp=$(curl_cmd --json "{'bri':$bright}" "http://$wled_host/json")
|
||||||
;;
|
;;
|
||||||
[1-9]|1[0-7]) # Switch to preset.
|
[1-9]|1[0-7]) # Switch to preset.
|
||||||
api_resp=$(curl_cmd --json "{'on':true,'ps':$2}" "http://$wled_host/json")
|
api_resp=$(curl_cmd --json "{'ps':$2}" "http://$wled_host/json")
|
||||||
;;
|
;;
|
||||||
l|list) # List presets.
|
l|list) # List presets.
|
||||||
echo "Presets on $wled_host:"
|
echo "Presets on $wled_host:"
|
||||||
|
@ -86,6 +86,7 @@ case "$2" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Check curl exit status
|
||||||
curl_exit=$?
|
curl_exit=$?
|
||||||
if test $curl_exit -ne 0; then
|
if test $curl_exit -ne 0; then
|
||||||
echo "Error: curl exited with exit code $curl_exit." >&2
|
echo "Error: curl exited with exit code $curl_exit." >&2
|
||||||
|
|
Loading…
Reference in a new issue