diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-07-07 07:31:48 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-07-07 07:31:48 -0400 |
commit | b55a205776e2e8a3462fac9b770d6815beda32c7 (patch) | |
tree | dcc7e8167333cffc932ef78490afe37ee92c7472 /drivers.c | |
parent | fa873d45a90f1e86944166d4cac5b72a085e381b (diff) | |
download | gpsd-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); |