Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snaptec committed May 20, 2020
1 parent 8a4c117 commit 008eb9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rfidtag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ rfid() {
if [ "$lasttag" == "$rfidstandby" ] || [ "$lasttag" == "$rfidstandby2" ] || [ "$lasttag" == "$rfidstandby3" ] ; then
echo 4 > ramdisk/lademodus
fi
if [ "$lasttag" == "$rfidlp1start1" ] || [ "$lasttag" == "$rfidlp1start2" ] || [ "$lasttag" == "$rfidlp1start3" ] ; then
if [ "$lasttag" == "$rfidlp1start1" ] || [ "$lasttag" == "$rfidlp1start2" ] || [ "$lasttag" == "$rfidlp1start3" ] || [ "$lasttag" == "$rfidlp1start4" ] || [ "$lasttag" == "$rfidlp1start5" ]; then
mosquitto_pub -r -t openWB/set/lp/1/ChargePointEnabled -m "1"
lp1enabled=1
fi
if [ "$lasttag" == "$rfidlp2start1" ] || [ "$lasttag" == "$rfidlp2start2" ] || [ "$lasttag" == "$rfidlp2start3" ] ; then
if [ "$lasttag" == "$rfidlp2start1" ] || [ "$lasttag" == "$rfidlp2start2" ] || [ "$lasttag" == "$rfidlp2start3" ] || [ "$lasttag" == "$rfidlp2start4" ] || [ "$lasttag" == "$rfidlp2start5" ]; then
mosquitto_pub -r -t openWB/set/lp/2/ChargePointEnabled -m "1"
lp2enabled=1
fi
Expand Down Expand Up @@ -323,4 +323,4 @@ getCpChargestat() {
fi

return $returnstat
}
}
2 changes: 1 addition & 1 deletion web/settings/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@
list(, $rfidlp1start4old) = explode("=", $line);
}
if(strpos($line, "rfidlp1start5=") !== false) {
list(, $rfidlp1start6old) = explode("=", $line);
list(, $rfidlp1start5old) = explode("=", $line);
}
if(strpos($line, "rfidlp2start1=") !== false) {
list(, $rfidlp2start1old) = explode("=", $line);
Expand Down

0 comments on commit 008eb9e

Please sign in to comment.