mirror of
https://github.com/vshymanskyy/TinyGSM.git
synced 2026-05-15 04:06:10 +00:00
Merge pull request #761 from jonas37/758-fix-error-parsing-gps-time-bg96
Fix parsing AT-command for getting GPS time in BG96
This commit is contained in:
@@ -354,7 +354,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(GSM_NL "+QGPSLOC:")) != 1) {
|
||||
if (waitResponse(10000L, GF(GSM_NL "+QGPSLOC: ")) != 1) {
|
||||
// NOTE: Will return an error if the position isn't fixed
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user