Skip to content

Commit

Permalink
Fix NMEA over TCP
Browse files Browse the repository at this point in the history
  • Loading branch information
EarToEarOak committed Aug 19, 2015
1 parent d388962 commit 1830d51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def __tcp_read(self):
buf += data
while buf.find('\n') != -1:
line, buf = buf.split('\n', 1)
yield line
pos = line.find('$')
if pos != -1 and pos + 1 < len(line):
yield line[pos + 1:]
if self._raw:
line = limit_to_ascii(line)
post_event(self._notify, EventThread(Event.LOC_RAW,
Expand Down
2 changes: 1 addition & 1 deletion src/version-timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1439141776
1439989411

0 comments on commit 1830d51

Please sign in to comment.