Fix errant GSM_NL

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2024-05-17 15:26:11 -04:00
parent ae81ee8b9d
commit b189018747
2 changed files with 5 additions and 1 deletions

View File

@@ -291,7 +291,7 @@ class TinyGsmSim7600 : public TinyGsmModem<TinyGsmSim7600>,
// n: whether to automatically report the system mode info
// stat: the current service. 0 if it not connected
sendAT(GF("+CNSMOD?"));
if (waitResponse(GF(GSM_NL "+CNSMOD:")) != 1) { return false; }
if (waitResponse(GF(AT_NL "+CNSMOD:")) != 1) { return false; }
n = streamGetIntBefore(',') != 0;
stat = streamGetIntBefore('\n');
waitResponse();