commit
50bf6203b5
|
|
@ -71,7 +71,7 @@ void loop() // run over and over again
|
||||||
if (GPS.newNMEAreceived()) {
|
if (GPS.newNMEAreceived()) {
|
||||||
// a tricky thing here is if we print the NMEA sentence, or data
|
// a tricky thing here is if we print the NMEA sentence, or data
|
||||||
// we end up not listening and catching other sentences!
|
// we end up not listening and catching other sentences!
|
||||||
// so be very wary if using OUTPUT_ALLDATA and trytng to print out data
|
// so be very wary if using OUTPUT_ALLDATA and trying to print out data
|
||||||
Serial.println(GPS.lastNMEA()); // this also sets the newNMEAreceived() flag to false
|
Serial.println(GPS.lastNMEA()); // this also sets the newNMEAreceived() flag to false
|
||||||
if (!GPS.parse(GPS.lastNMEA())) // this also sets the newNMEAreceived() flag to false
|
if (!GPS.parse(GPS.lastNMEA())) // this also sets the newNMEAreceived() flag to false
|
||||||
return; // we can fail to parse a sentence in which case we should just wait for another
|
return; // we can fail to parse a sentence in which case we should just wait for another
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue