Skip to content

Commit

Permalink
Fix " error
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodoVDR authored Jun 8, 2020
1 parent 8f28b9a commit d68334d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonoff.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# set -x

version='0.20'
version='0.21'
# Date: 2020-06-08
# Changelog:
# small fixes, for wrong apikey
Expand Down Expand Up @@ -282,7 +282,7 @@ func_switch(){
if [ "x$PASSWD" != 'x' ] ; then

URL="http://${IPADDR}/cm?user=${USER}&password=${PASSWD}&cmnd=${VALUE}"
URL2="http://${IPADDR}/cm?user=${USER}&password=${PASSWD}&cmnd=Power${RELNR}""
URL2="http://${IPADDR}/cm?user=${USER}&password=${PASSWD}&cmnd=Power${RELNR}"
else
URL="http://${IPADDR}/cm?cmnd=${VALUE}"
URL2="http://${IPADDR}/cm?cmnd=Power${RELNR}"
Expand Down

0 comments on commit d68334d

Please sign in to comment.