Browse Source

Merge branch 'master' into v_master

v_master
Sara Damiano 5 years ago
parent
commit
d28e654dfd
2 changed files with 2 additions and 2 deletions
  1. +2
    -1
      src/TinyGsmClientBG96.h
  2. +0
    -1
      src/TinyGsmModem.tpp

+ 2
- 1
src/TinyGsmClientBG96.h View File

@ -103,10 +103,11 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
TINY_GSM_CLIENT_CONNECT_OVERRIDES TINY_GSM_CLIENT_CONNECT_OVERRIDES
void stop(uint32_t maxWaitMs) { void stop(uint32_t maxWaitMs) {
uint32_t startMillis = millis();
dumpModemBuffer(maxWaitMs); dumpModemBuffer(maxWaitMs);
at->sendAT(GF("+QICLOSE="), mux); at->sendAT(GF("+QICLOSE="), mux);
sock_connected = false; sock_connected = false;
at->waitResponse();
at->waitResponse((maxWaitMs - (millis() - startMillis)));
} }
void stop() override { void stop() override {
stop(15000L); stop(15000L);


+ 0
- 1
src/TinyGsmModem.tpp View File

@ -291,7 +291,6 @@ class TinyGsmModem {
inline float streamGetFloatLength(int8_t numChars) { inline float streamGetFloatLength(int8_t numChars) {
char buf[16]; char buf[16];
size_t bytesRead = thisModem().stream.readBytes(buf, numChars); size_t bytesRead = thisModem().stream.readBytes(buf, numChars);
DBG("### bytesRead:", bytesRead);
if (bytesRead) { if (bytesRead) {
buf[numChars] = '\0'; buf[numChars] = '\0';
int16_t res = atof(buf); int16_t res = atof(buf);


Loading…
Cancel
Save