diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-03-27 02:35:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-03-27 02:35:01 +0000 |
commit | 4def1d408c4865d764f94d6766862800b8af4c9c (patch) | |
tree | 02740e4e68b2aa7b8f5d85ffd56c436893772b38 /gpsfake.py | |
parent | 7bdc8eacf14ff0bca9f99ae14302fd94aa7c4ce1 (diff) | |
download | gpsd-4def1d408c4865d764f94d6766862800b8af4c9c.tar.gz |
Python interface needs to track that last change, too.
Diffstat (limited to 'gpsfake.py')
-rw-r--r-- | gpsfake.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |