diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-16 16:51:26 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-16 16:51:26 +0000 |
commit | f91695ccd63f75f420b78852f1654015208bd614 (patch) | |
tree | 7c4212c9f0a828592e796ddec312025705319fe9 /gpsctl.c | |
parent | 1ad684bb6a6b9c33652d9827978a166b23423446 (diff) | |
download | gpsd-f91695ccd63f75f420b78852f1654015208bd614.tar.gz |
Fixes for generated DEVICE calls.
Diffstat (limited to 'gpsctl.c')
-rw-r--r-- | gpsctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |