diff options
author | Greg Troxel <gdt@ir.bbn.com> | 2015-01-25 20:07:24 -0500 |
---|---|---|
committer | Greg Troxel <gdt@ir.bbn.com> | 2015-01-25 20:19:27 -0500 |
commit | 7f6b6f0b425a446b5eb1491cbf27f98b3886dc52 (patch) | |
tree | e7fd13aceaac78a292c70ec9dd3eb7c361feabbf | |
parent | 2b40e8145c2264df1febe9ee68ca0c5f60a4b8f1 (diff) | |
download | gpsd-7f6b6f0b425a446b5eb1491cbf27f98b3886dc52.tar.gz |
Add delays for Darwin
-rw-r--r-- | gps/fake.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gps/fake.py b/gps/fake.py index 445ff3a2..d172ae46 100644 --- a/gps/fake.py +++ b/gps/fake.py @@ -112,12 +112,21 @@ import packet as sniffer # WRITE_PAD = 0.001 / CLOSE_DELAY = 0.8 all tests passed (697s) # +# examples are "# sys.platform platform.platform()" + if sys.platform.startswith("linux"): WRITE_PAD = 0.0 CLOSE_DELAY = 0.1 elif sys.platform.startswith("freebsd"): WRITE_PAD = 0.001 CLOSE_DELAY = 0.4 +elif sys.platform.startswith("netbsd"): + WRITE_PAD = 0.004 + CLOSE_DELAY = 0.8 +elif sys.platform.startswith("darwin"): + # darwin Darwin-13.4.0-x86_64-i386-64bit + WRITE_PAD = 0.01 + CLOSE_DELAY = 4 else: WRITE_PAD = 0.004 CLOSE_DELAY = 0.8 |