summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-07-07 07:31:48 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-07-07 07:31:48 -0400
commitb55a205776e2e8a3462fac9b770d6815beda32c7 (patch)
treedcc7e8167333cffc932ef78490afe37ee92c7472 /drivers.c
parentfa873d45a90f1e86944166d4cac5b72a085e381b (diff)
downloadgpsd-b55a205776e2e8a3462fac9b770d6815beda32c7.tar.gz
Bump protocol version number to 3.6 because of news "remote" attribute.
Beware: the C binding doesn't grok this attribute yet.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers.c b/drivers.c
index 99ac5dc7..f4679704 100644
--- a/drivers.c
+++ b/drivers.c
@@ -1225,7 +1225,8 @@ static gps_mask_t json_pass_packet(struct gps_device_t *session UNUSED)
/* mark certain responses without a path or device attribute */
if (strstr((char *)session->packet.outbuffer, "VERSION") != NULL
- || strstr((char *)session->packet.outbuffer, "WATCH") != NULL) {
+ || strstr((char *)session->packet.outbuffer, "WATCH") != NULL
+ || strstr((char *)session->packet.outbuffer, "DEVICES") != NULL) {
session->packet.outbuffer[session->packet.outbuflen] = '\0';
(void)strlcat((char *)session->packet.outbuffer, ",\"remote\":\"",
sizeof(session->packet.outbuffer));