summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-16 16:51:26 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-16 16:51:26 +0000
commitf91695ccd63f75f420b78852f1654015208bd614 (patch)
tree7c4212c9f0a828592e796ddec312025705319fe9 /gpsctl.c
parent1ad684bb6a6b9c33652d9827978a166b23423446 (diff)
downloadgpsd-f91695ccd63f75f420b78852f1654015208bd614.tar.gz
Fixes for generated DEVICE calls.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsctl.c b/gpsctl.c
index beb29828..457d6737 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -336,7 +336,7 @@ int main(int argc, char **argv)
char stopbits = '1';
if (strchr(speed, ':') == NULL)
(void)gps_query(gpsdata,
- "?DEVICE={\"device\":%s,\"bps\":%s}\r\n",
+ "?DEVICE={\"path\":\"%s\",\"bps\":%s}\r\n",
device, speed);
else {
char *modespec = strchr(speed, ':');
@@ -361,7 +361,7 @@ int main(int argc, char **argv)
}
if (status == 0)
(void)gps_query(gpsdata,
- "?DEVICE={\"device\":%s,\"bps\":%s,\"serialmode\":\"8%c%c\"}\r\n",
+ "?DEVICE={\"path\":\"%s\",\"bps\":%s,\"serialmode\":\"8%c%c\"}\r\n",
device, speed, parity, stopbits);
}
if (atoi(speed) != (int)gpsdata->dev.baudrate) {
@@ -376,7 +376,7 @@ int main(int argc, char **argv)
}
if (rate != NULL) {
(void)gps_query(gpsdata,
- "?DEVICE={\"device\":%s,\"cycle\":%s}\n",
+ "?DEVICE={\"path\":\"%s\",\"cycle\":%s}\n",
device, rate);
}
#endif /* ALLOW_RECONFIGURE */