diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-03-28 22:56:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-03-28 22:56:51 +0000 |
commit | aa7421288ae243994df07e9c75d721ff82f2649f (patch) | |
tree | ab6d8ec01aa414207a6d767379033a66375d598d /gpsd.c | |
parent | 6b4793f23be7c9098626e0d631688f6f3ce2554e (diff) | |
download | gpsd-aa7421288ae243994df07e9c75d721ff82f2649f.tar.gz |
Stub version of K command.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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) |