Removed un-needed Ethernet include
This commit is contained in:
@@ -26,9 +26,6 @@
|
||||
#include "TinyGsmTCP.tpp"
|
||||
#include "TinyGsmTime.tpp"
|
||||
|
||||
#include <Ethernet.h>
|
||||
|
||||
|
||||
#define GSM_NL "\r\n"
|
||||
static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
|
||||
static const char GSM_ERROR[] TINY_GSM_PROGMEM = "ERROR" GSM_NL;
|
||||
@@ -406,7 +403,8 @@ class TinyGsmMC60 : public TinyGsmModem<TinyGsmMC60>,
|
||||
bool allAcknowledged = false;
|
||||
// bool failed = false;
|
||||
while (!allAcknowledged) {
|
||||
sendAT(GF("+QISACK="), mux); // If 'mux' is not specified, MC60 returns 'ERRROR' (for QIMUX == 1)
|
||||
sendAT(GF("+QISACK="), mux); // If 'mux' is not specified, MC60 returns
|
||||
// 'ERRROR' (for QIMUX == 1)
|
||||
if (waitResponse(5000L, GF(GSM_NL "+QISACK:")) != 1) {
|
||||
return -1;
|
||||
} else {
|
||||
@@ -550,8 +548,10 @@ class TinyGsmMC60 : public TinyGsmModem<TinyGsmMC60>,
|
||||
// read the number of packets in the buffer
|
||||
int8_t num_packets = streamGetIntBefore(',');
|
||||
// read the length of the current packet
|
||||
streamSkipUntil(','); // Skip the length of the current package in the buffer
|
||||
int16_t len_total = streamGetIntBefore('\n'); // Total length of all packages
|
||||
streamSkipUntil(
|
||||
','); // Skip the length of the current package in the buffer
|
||||
int16_t len_total =
|
||||
streamGetIntBefore('\n'); // Total length of all packages
|
||||
if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux] &&
|
||||
num_packets >= 0 && len_total >= 0) {
|
||||
sockets[mux]->sock_available = len_total;
|
||||
|
Reference in New Issue
Block a user