diff --git a/src/TinyGsmClientM95.h b/src/TinyGsmClientM95.h index f85e4b0..3d7d2b6 100644 --- a/src/TinyGsmClientM95.h +++ b/src/TinyGsmClientM95.h @@ -570,10 +570,10 @@ class TinyGsmM95 : public TinyGsmModem, } 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); diff --git a/src/TinyGsmClientMC60.h b/src/TinyGsmClientMC60.h index 851cbbc..59c42af 100644 --- a/src/TinyGsmClientMC60.h +++ b/src/TinyGsmClientMC60.h @@ -539,9 +539,9 @@ class TinyGsmMC60 : public TinyGsmModem, } 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 = ""; } } diff --git a/src/TinyGsmClientSIM7000.h b/src/TinyGsmClientSIM7000.h index 8c66e6c..b278b88 100644 --- a/src/TinyGsmClientSIM7000.h +++ b/src/TinyGsmClientSIM7000.h @@ -686,23 +686,23 @@ class TinyGsmSim7000 : public TinyGsmModem, } data = ""; DBG("### Closed: ", mux); - } else if (data.endsWith(GF("*PSNWID:" GSM_NL))) { + } else if (data.endsWith(GF("*PSNWID:"))) { streamSkipUntil('\n'); // Refresh network name by network data = ""; - DBG("### Network name has been updated."); - } else if (data.endsWith(GF("*PSUTTZ:" GSM_NL))) { + DBG("### Network name updated."); + } else if (data.endsWith(GF("*PSUTTZ:"))) { streamSkipUntil('\n'); // Refresh time and time zone by network data = ""; - DBG("### Network time and time zone have been updated."); - } else if (data.endsWith(GF("+CTZV:" GSM_NL))) { + DBG("### Network time and time zone updated."); + } else if (data.endsWith(GF("+CTZV:"))) { streamSkipUntil('\n'); // Refresh network time zone by network data = ""; - DBG("### Network time zone has been updated."); - } else if (data.endsWith(GF("DST:" GSM_NL))) { + DBG("### Network time zone updated."); + } else if (data.endsWith(GF("DST: "))) { streamSkipUntil( '\n'); // Refresh Network Daylight Saving Time by network data = ""; - DBG("### Daylight savings time state been updated."); + DBG("### Daylight savings time state updated."); } } } while (millis() - startMillis < timeout_ms); diff --git a/src/TinyGsmClientSIM800.h b/src/TinyGsmClientSIM800.h index 7c7b35a..5285b19 100644 --- a/src/TinyGsmClientSIM800.h +++ b/src/TinyGsmClientSIM800.h @@ -661,23 +661,23 @@ class TinyGsmSim800 : public TinyGsmModem, } data = ""; DBG("### Closed: ", mux); - } else if (data.endsWith(GF("*PSNWID:" GSM_NL))) { + } else if (data.endsWith(GF("*PSNWID:"))) { streamSkipUntil('\n'); // Refresh network name by network data = ""; - DBG("### Network name has been updated."); - } else if (data.endsWith(GF("*PSUTTZ:" GSM_NL))) { + DBG("### Network name updated."); + } else if (data.endsWith(GF("*PSUTTZ:"))) { streamSkipUntil('\n'); // Refresh time and time zone by network data = ""; - DBG("### Network time and time zone have been updated."); - } else if (data.endsWith(GF("+CTZV:" GSM_NL))) { + DBG("### Network time and time zone updated."); + } else if (data.endsWith(GF("+CTZV:"))) { streamSkipUntil('\n'); // Refresh network time zone by network data = ""; - DBG("### Network time zone has been updated."); - } else if (data.endsWith(GF("DST:" GSM_NL))) { + DBG("### Network time zone updated."); + } else if (data.endsWith(GF("DST:"))) { streamSkipUntil( '\n'); // Refresh Network Daylight Saving Time by network data = ""; - DBG("### Daylight savings time state been updated."); + DBG("### Daylight savings time state updated."); } } } while (millis() - startMillis < timeout_ms);