Fix #508, GPS on 7600

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2021-04-28 15:27:08 -04:00
parent 75104a49c3
commit a9f723130c

View File

@@ -435,7 +435,7 @@ class TinyGsmSim7600 : public TinyGsmModem<TinyGsmSim7600>,
// get the RAW GPS output // get the RAW GPS output
String getGPSrawImpl() { String getGPSrawImpl() {
sendAT(GF("+CGNSSINFO=32")); sendAT(GF("+CGNSSINFO"));
if (waitResponse(GF(GSM_NL "+CGNSSINFO:")) != 1) { return ""; } if (waitResponse(GF(GSM_NL "+CGNSSINFO:")) != 1) { return ""; }
String res = stream.readStringUntil('\n'); String res = stream.readStringUntil('\n');
waitResponse(); waitResponse();