summaryrefslogtreecommitdiff
path: root/gpsd.hotplug
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-04-02 10:05:39 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-04-02 10:05:39 +0000
commitb84c3ca7094a51d8b144be9114008713180d0938 (patch)
tree644ded4a610b0a7f808c9eb75a7b8a36caf06a34 /gpsd.hotplug
parent71a3907ac9d9876259bc8e04620f4c6494913d78 (diff)
downloadgpsd-b84c3ca7094a51d8b144be9114008713180d0938.tar.gz
Document the control-socket commands.
Diffstat (limited to 'gpsd.hotplug')
-rwxr-xr-xgpsd.hotplug6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsd.hotplug b/gpsd.hotplug
index b4454a25..0382d7ef 100755
--- a/gpsd.hotplug
+++ b/gpsd.hotplug
@@ -45,10 +45,10 @@ def wake_up_gpsd(devpath):
if not connect:
return
- # We've got a live connection to gpsd. Ship it the right F command.
- # No need to look at the response; gpsd will lock on to the device
+ # We've got a live connection to the gpsd control socket.
+ # No response, because gpsd will lock on to the device
# if it's really a GPS and ignore it if it's not.
- connect.write("F=%s\r\n" % tty)
+ connect.write("+%s\r\n" % tty)
connect.close()
return