summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-03-28 22:56:51 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-03-28 22:56:51 +0000
commitaa7421288ae243994df07e9c75d721ff82f2649f (patch)
treeab6d8ec01aa414207a6d767379033a66375d598d /gpsd.c
parent6b4793f23be7c9098626e0d631688f6f3ce2554e (diff)
downloadgpsd-aa7421288ae243994df07e9c75d721ff82f2649f.tar.gz
Stub version of K command.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 3b869bbf..0f894064 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -366,8 +366,20 @@ static int handle_request(int cfd, char *buf, int buflen)
case 'I':
sprintf(phrase, ",I=%s", device->device_type->typename);
break;
+#ifdef MULTISESSION
+ case 'K':
+ /* FIXME: K= form not yet supported */
+ strcpy(phrase, ",K=");
+ for (i = 0; i < MAXDEVICES; i++)
+ if (channels[i].device) {
+ strcat(phrase, device->gpsd_device);
+ strcat(phrase, " ");
+ }
+ phrase[strlen(phrase)-1] = '\0';
+ break
+#endif /* MULTISESSION */
case 'L':
- sprintf(phrase, ",L=1 " VERSION " abcdefilmnpqrstuvwxy"); //ghjko
+ sprintf(phrase, ",L=1 " VERSION " abcdefilmnpqrstuvwxy"); //ghjk
break;
case 'M':
if (ud->fix.mode == MODE_NOT_SEEN)