Fix netopen response

This commit is contained in:
Sara Damiano
2019-07-19 12:46:05 -04:00
parent 9f359eac91
commit 6504d2c1c4

View File

@@ -392,7 +392,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
// We to ignore any immediate response and wait for the
// URC to show it's really connected.
sendAT(GF("+NETOPEN"));
if (waitResponse(75000L, GF(GSM_NL "+NETOPEN: 1")) != 1) {
if (waitResponse(75000L, GF(GSM_NL "+NETOPEN: 0")) != 1) {
return false;
}