summaryrefslogtreecommitdiff
path: root/gpsd.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-09-13 15:53:53 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-09-13 15:53:53 +0000
commit382cb371b1130862d50abdcb04a3075c2b76342c (patch)
tree26a0e2d8bd8063cd747c90020cc71f6704720153 /gpsd.py
parent0d1bc6c5818a88bdcf93c06d34147e400a6f505c (diff)
downloadgpsd-382cb371b1130862d50abdcb04a3075c2b76342c.tar.gz
Fixes stimulated by the arrival of the Haicom HI 240-S.
Diffstat (limited to 'gpsd.py')
-rwxr-xr-xgpsd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.py b/gpsd.py
index 71c4e69c..30a92365 100755
--- a/gpsd.py
+++ b/gpsd.py
@@ -184,7 +184,7 @@ class NMEA:
self.logger(3, "Satellite data no good.\n");
def handle_line(self, line):
- if line[0] == '$':
+ if line and line[0] == '$':
line = line[1:].split('*')
if len(line) != 2: return
if not self.checksum(line[0], line[1]):