From 8546ac5058f66f3387002ff9af78bfe06b36b9eb Mon Sep 17 00:00:00 2001 From: lady ada Date: Sun, 7 Feb 2021 15:41:52 -0500 Subject: [PATCH] reduce excess newlines. fix header --- .../GPS_HardwareSerial_Parsing.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino b/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino index 2d03491..397340f 100644 --- a/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino +++ b/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino @@ -36,7 +36,7 @@ void setup() // connect at 115200 so we can read the GPS fast enough and echo without dropping chars // also spit it out Serial.begin(115200); - Serial.println("Adafruit GPS library basic test!"); + Serial.println("Adafruit GPS library basic parsing test!"); // 9600 NMEA is the default baud rate for Adafruit MTK GPS's- some use 4800 GPS.begin(9600); @@ -72,7 +72,7 @@ void loop() // run over and over again // a tricky thing here is if we print the NMEA sentence, or data // we end up not listening and catching other sentences! // 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.print(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 } @@ -110,4 +110,4 @@ void loop() // run over and over again Serial.print("Satellites: "); Serial.println((int)GPS.satellites); } } -} +} \ No newline at end of file