Skip to content

Commit

Permalink
Merge pull request #17 from barbeau/nmea-new-line
Browse files Browse the repository at this point in the history
Remove new line characters from NMEA sentences before logging
  • Loading branch information
mohammedkhider authored Sep 10, 2019
2 parents 2f6ba51 + 67e4dd8 commit b785456
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public void onNmeaReceived(long timestamp, String s) {
if (mFileWriter == null) {
return;
}
String nmeaStream = String.format(Locale.US, "NMEA,%s,%d", s, timestamp);
String nmeaStream = String.format(Locale.US, "NMEA,%s,%d", s.trim(), timestamp);
try {
mFileWriter.write(nmeaStream);
mFileWriter.newLine();
Expand Down

0 comments on commit b785456

Please sign in to comment.