Skip to content

Commit

Permalink
Merge branch 'vshymanskyy-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
SRGDamia1 committed May 20, 2024
2 parents f77a671 + 6ff279f commit c8c5dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TinyGsmClientBG96.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
// get the RAW GPS output
String getGPSrawImpl() {
sendAT(GF("+QGPSLOC=2"));
if (waitResponse(10000L, GF(AT_NL "+QGPSLOC:")) != 1) { return ""; }
if (waitResponse(10000L, GF(AT_NL "+QGPSLOC: ")) != 1) { return ""; }
String res = stream.readStringUntil('\n');
waitResponse();
res.trim();
Expand All @@ -367,7 +367,7 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
int* year = 0, int* month = 0, int* day = 0, int* hour = 0,
int* minute = 0, int* second = 0) {
sendAT(GF("+QGPSLOC=2"));
if (waitResponse(10000L, GF(AT_NL "+QGPSLOC:")) != 1) {
if (waitResponse(10000L, GF(AT_NL "+QGPSLOC: ")) != 1) {
// NOTE: Will return an error if the position isn't fixed
return false;
}
Expand Down

0 comments on commit c8c5dd2

Please sign in to comment.