From e19160d5fa448733df0abafda016b8c550a61ede Mon Sep 17 00:00:00 2001 From: Yasin Kaya Date: Fri, 12 Apr 2019 17:30:38 +0300 Subject: [PATCH] fixed reconnect code for new HAT --- ppp_installer/install.sh | 2 +- ppp_installer/reconnect_cellulariot | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ppp_installer/install.sh b/ppp_installer/install.sh index c83d52d..a92ddd8 100755 --- a/ppp_installer/install.sh +++ b/ppp_installer/install.sh @@ -20,7 +20,7 @@ case $answer in *) echo "${YELLOW}You did not chose 1, 2,3 or 4${SET}"; exit 1; esac -if [ $answer -eq 3 || $answer -eq 4 ]; then +if [ $answer -eq 3 ] || [ $answer -eq 4 ]; then echo "${YELLOW}Please choose LTE Technology:${SET}" echo "${YELLOW}1: GPRS/EDGE${SET}" echo "${YELLOW}2: CATM1${SET}" diff --git a/ppp_installer/reconnect_cellulariot b/ppp_installer/reconnect_cellulariot index 96737f4..6c46174 100644 --- a/ppp_installer/reconnect_cellulariot +++ b/ppp_installer/reconnect_cellulariot @@ -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