summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-02-09 16:39:57 -0500
committerEric S. Raymond <esr@thyrsus.com>2016-02-09 16:39:57 -0500
commit77fb9c48cc127bc2d3a1bd7e66109325f0e2ee98 (patch)
tree84bf8718494bae0253c3a9bc17f7cfca4c1de41c /gpsfake
parentbf65d4033a451b1a274cbe1a59904e8300bf02dc (diff)
downloadgpsd-77fb9c48cc127bc2d3a1bd7e66109325f0e2ee98.tar.gz
Add more startup delay in gpsfake, and explain why.
Part of a the isync patch series from Michael Brown <mbrown@fensystems.co.uk>, which failed to apply properly and had to be hand-atched a bit.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpsfake b/gpsfake
index ae095c64..8365c2c3 100755
--- a/gpsfake
+++ b/gpsfake
@@ -222,7 +222,11 @@ if __name__ == '__main__':
# sentences to arrive before the watch takes effect.
# This needs to increase if leading sentences in
# test loads aren't being processed.
- time.sleep(1)
+ # Until the ISYNC driver was introduced, 1 sec was
+ # sufficient here. The extra 0.4s allows for the
+ # additional two 200ms delays introduced by the
+ # calls to gpsd_set_speed() in isync_detect()
+ time.sleep(1.4)
test.run()
except socket.error, msg:
sys.stderr.write("gpsfake: socket error %s.\n" % msg)