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

@ -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}"

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