Typo
This commit is contained in:
@@ -145,9 +145,6 @@ public:
|
||||
TINY_GSM_YIELD();
|
||||
rx.clear();
|
||||
sock_connected = at->modemConnect(host, port, mux, true);
|
||||
// sock_connected = at->modemConnect(host, port, &mux, true);
|
||||
// at->sockets[mux] = this;
|
||||
// TODO: When is the socket attached?
|
||||
return sock_connected;
|
||||
}
|
||||
};
|
||||
|
@@ -146,9 +146,6 @@ public:
|
||||
TINY_GSM_YIELD();
|
||||
rx.clear();
|
||||
sock_connected = at->modemConnect(host, port, mux, true);
|
||||
// sock_connected = at->modemConnect(host, port, &mux, true);
|
||||
// at->sockets[mux] = this;
|
||||
// TODO: When is the socket attached?
|
||||
return sock_connected;
|
||||
}
|
||||
};
|
||||
@@ -483,7 +480,6 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
|
||||
return TinyGsmIpFromString(getLocalIP());
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Phone Call functions
|
||||
*/
|
||||
|
@@ -163,10 +163,13 @@ public:
|
||||
stop();
|
||||
TINY_GSM_YIELD();
|
||||
rx.clear();
|
||||
// sock_connected = at->modemConnect(host, port, mux, true);
|
||||
uint8_t oldMux = mux;
|
||||
sock_connected = at->modemConnect(host, port, &mux, true);
|
||||
if (mux != oldMux) {
|
||||
DBG("WARNING: Mux number changed from", oldMux, "to", mux);
|
||||
at->sockets[oldMux] = NULL;
|
||||
}
|
||||
at->sockets[mux] = this;
|
||||
// TODO: When is the socket attached?
|
||||
at->maintain();
|
||||
return sock_connected;
|
||||
}
|
||||
|
@@ -147,10 +147,13 @@ public:
|
||||
stop();
|
||||
TINY_GSM_YIELD();
|
||||
rx.clear();
|
||||
// sock_connected = at->modemConnect(host, port, mux, true);
|
||||
uint8_t oldMux = mux;
|
||||
sock_connected = at->modemConnect(host, port, &mux, true);
|
||||
if (mux != oldMux) {
|
||||
DBG("WARNING: Mux number changed from", oldMux, "to", mux);
|
||||
at->sockets[oldMux] = NULL;
|
||||
}
|
||||
at->sockets[mux] = this;
|
||||
// TODO: When is the socket attached?
|
||||
at->maintain();
|
||||
return sock_connected;
|
||||
}
|
||||
|
Reference in New Issue
Block a user