summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index b3188e99..d80047cd 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -426,7 +426,7 @@ void json_watch_dump(const struct policy_t *ccp,
{
/*@-compdef@*/
(void)snprintf(reply, replylen,
- "{\"class\":\"WATCH\",\"enable\":%s,\"json\":%s,\"nmea\":%s,\"raw\":%d,\"scaled\":%s,\"timing\":%s,\"split24\":%s,\"ppsbar\":%s,",
+ "{\"class\":\"WATCH\",\"enable\":%s,\"json\":%s,\"nmea\":%s,\"raw\":%d,\"scaled\":%s,\"timing\":%s,\"split24\":%s,\"pps\":%s,",
ccp->watcher ? "true" : "false",
ccp->json ? "true" : "false",
ccp->nmea ? "true" : "false",
@@ -434,7 +434,7 @@ void json_watch_dump(const struct policy_t *ccp,
ccp->scaled ? "true" : "false",
ccp->timing ? "true" : "false",
ccp->split24 ? "true" : "false",
- ccp->ppsbar ? "true" : "false");
+ ccp->pps ? "true" : "false");
if (ccp->devpath[0] != '\0')
(void)snprintf(reply + strlen(reply), replylen - strlen(reply),
"\"device\":\"%s\",", ccp->devpath);