summaryrefslogtreecommitdiff
path: root/gps.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-02-13 06:50:36 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-02-13 06:50:36 +0000
commit5b769ec6080245a5fcb12707a30ecc0a3da163d3 (patch)
treeefb6b3453577593e9714ec080d9d7d7c48d018d2 /gps.py
parent4955aa9e9788d4355fcd74a9aee6629cac413d07 (diff)
downloadgpsd-5b769ec6080245a5fcb12707a30ecc0a3da163d3.tar.gz
Integrate gpsfake.
Diffstat (limited to 'gps.py')
-rwxr-xr-xgps.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gps.py b/gps.py
index 728b27d2..35d405a3 100755
--- a/gps.py
+++ b/gps.py
@@ -341,6 +341,11 @@ class SiRF:
return SiRF.transport("".join(switcher))
to_NMEA = staticmethod(to_NMEA)
+ def reset():
+ "Generate a GPS reset command."
+ return SiRF.transport("\x85\x00\x00\x00\x00\x00\x00\x00\x00")
+ reset = staticmethod(reset)
+
# EarthDistance code swiped from Kismet and corrected
# (As yet, this stuff is not in the libgps C library.)