Don't disconnect immediately before connect

This commit is contained in:
Sara Damiano
2019-09-06 13:51:39 -04:00
parent 8e581b6398
commit f3079d1b42

View File

@@ -381,7 +381,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
*/
bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) {
gprsDisconnect();
// gprsDisconnect();
sendAT(GF("+CGATT=1")); // attach to GPRS
if (waitResponse(360000L) != 1) {