diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-02-09 16:39:57 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-02-09 16:39:57 -0500 |
commit | 77fb9c48cc127bc2d3a1bd7e66109325f0e2ee98 (patch) | |
tree | 84bf8718494bae0253c3a9bc17f7cfca4c1de41c /gpsfake | |
parent | bf65d4033a451b1a274cbe1a59904e8300bf02dc (diff) | |
download | gpsd-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-x | gpsfake | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |