fixed reconnect code for new HAT

This commit is contained in:
Yasin Kaya
2019-04-12 17:30:38 +03:00
parent f7782d7b2b
commit e19160d5fa
2 changed files with 3 additions and 3 deletions

View File

@@ -10,10 +10,10 @@ gpio -g write 17 0
while true; do
if [ $(gpio -g read 23) = "0" ]; then
if [ $(gpio -g read 23) = "1" ]; then
echo "Power up"
gpio -g write 24 0
#gpio -g write 24 0
gpio -g write 24 1
sleep 2
gpio -g write 24 0