File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/GPS_HardwareSerial_Parsing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void setup()
36
36
// connect at 115200 so we can read the GPS fast enough and echo without dropping chars
37
37
// also spit it out
38
38
Serial.begin (115200 );
39
- Serial.println (" Adafruit GPS library basic test!" );
39
+ Serial.println (" Adafruit GPS library basic parsing test!" );
40
40
41
41
// 9600 NMEA is the default baud rate for Adafruit MTK GPS's- some use 4800
42
42
GPS.begin (9600 );
@@ -72,7 +72,7 @@ void loop() // run over and over again
72
72
// a tricky thing here is if we print the NMEA sentence, or data
73
73
// we end up not listening and catching other sentences!
74
74
// so be very wary if using OUTPUT_ALLDATA and trying to print out data
75
- Serial.println (GPS.lastNMEA ()); // this also sets the newNMEAreceived() flag to false
75
+ Serial.print (GPS.lastNMEA ()); // this also sets the newNMEAreceived() flag to false
76
76
if (!GPS.parse (GPS.lastNMEA ())) // this also sets the newNMEAreceived() flag to false
77
77
return ; // we can fail to parse a sentence in which case we should just wait for another
78
78
}
@@ -110,4 +110,4 @@ void loop() // run over and over again
110
110
Serial.print (" Satellites: " ); Serial.println ((int )GPS.satellites );
111
111
}
112
112
}
113
- }
113
+ }
You can’t perform that action at this time.
0 commit comments