Oops, fix for the urc's

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-02-18 16:03:58 -05:00
parent 6e7ea5aced
commit f7659e389c
4 changed files with 20 additions and 20 deletions

View File

@@ -539,9 +539,9 @@ class TinyGsmMC60 : public TinyGsmModem<TinyGsmMC60>,
}
data = "";
DBG("### Closed: ", mux);
} else if (data.endsWith(GF("+QNITZ:" GSM_NL))) {
} else if (data.endsWith(GF("+QNITZ:"))) {
streamSkipUntil('\n'); // URC for time sync
DBG("### Network time has been updated.");
DBG("### Network time updated.");
data = "";
}
}