summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-25 09:57:41 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-25 09:57:41 -0500
commited35c7a896327bb67e1293b11532a8d926e41baa (patch)
treea51b58df3e79f0698fa50beda443d5f4e0ab1b5b /gpsdecode.c
parent0aeee99acd937fe69dc97affd7ebfa66fa635448 (diff)
downloadgpsd-ed35c7a896327bb67e1293b11532a8d926e41baa.tar.gz
Make the SiRF driver obey context.readonly.
All regression tests and SiRF live-testing pass.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsdecode.c b/gpsdecode.c
index f0d4af68..6a8e7f34 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -371,9 +371,11 @@ static void decode(FILE *fpin, FILE *fpout)
policy.json = json;
gps_context_init(&context);
+ context.readonly = true;
gpsd_init(&session, &context, NULL);
gpsd_clear(&session);
session.gpsdata.gps_fd = fileno(fpin);
+ session.gpsdata.dev.baudrate = 38400; /* hack to enable subframes */
for (;;)
{