Oops, fix for the urc's
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -570,10 +570,10 @@ class TinyGsmM95 : public TinyGsmModem<TinyGsmM95>,
|
||||
}
|
||||
data = "";
|
||||
DBG("### Closed: ", mux);
|
||||
} else if (data.endsWith(GF("+QNITZ:" GSM_NL))) {
|
||||
} else if (data.endsWith(GF("+QNITZ:"))) {
|
||||
streamSkipUntil('\n'); // URC for time sync
|
||||
data = "";
|
||||
DBG("### Network time has been updated.");
|
||||
DBG("### Network time updated.");
|
||||
}
|
||||
}
|
||||
} while (millis() - startMillis < timeout_ms);
|
||||
|
||||
Reference in New Issue
Block a user