summaryrefslogtreecommitdiff
path: root/gpsfake.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-27 02:35:01 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-27 02:35:01 +0000
commit4def1d408c4865d764f94d6766862800b8af4c9c (patch)
tree02740e4e68b2aa7b8f5d85ffd56c436893772b38 /gpsfake.py
parent7bdc8eacf14ff0bca9f99ae14302fd94aa7c4ce1 (diff)
downloadgpsd-4def1d408c4865d764f94d6766862800b8af4c9c.tar.gz
Python interface needs to track that last change, too.
Diffstat (limited to 'gpsfake.py')
-rw-r--r--gpsfake.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsfake.py b/gpsfake.py
index 2c6975f9..2847f48e 100644
--- a/gpsfake.py
+++ b/gpsfake.py
@@ -95,10 +95,10 @@ class TestLoad:
#gpspacket.register_report(reporter)
type_latch = None
while True:
- (ptype, packet) = getter.get(logfp.fileno())
- if ptype == gpspacket.BAD_PACKET:
+ (len, ptype, packet) = getter.get(logfp.fileno())
+ if len <= 0:
break
- elif ptype == gpspacket.EMPTY_PACKET:
+ elif ptype == gpspacket.BAD_PACKET:
break
elif ptype == gpspacket.COMMENT_PACKET:
if "Serial:" in packet: