diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-25 07:35:41 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-25 07:35:41 -0400 |
commit | 2f7a78002f012c7ed322767cf3e413b961a640b4 (patch) | |
tree | 50d95ee10f3a8e972489e5502a75dd970483a15f /driver_superstar2.c | |
parent | 3517cd53afabac201b3563f58a33dc15fd35bfdd (diff) | |
download | gpsd-2f7a78002f012c7ed322767cf3e413b961a640b4.tar.gz |
Split firmwqre version query out of the init method.
This enables us to force readonly off while it's being called.
The practical effect is that gpsmon can get a firmware version (if this
is possible) without reconfiguring the device.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r-- | driver_superstar2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c index ff151f6d..9db21e02 100644 --- a/driver_superstar2.c +++ b/driver_superstar2.c @@ -430,6 +430,8 @@ superstar2_dispatch(struct gps_device_t * session, unsigned char *buf, * **********************************************************/ +/* FIXME: factor out Superstar init_query for version */ + static void superstar2_event_hook(struct gps_device_t *session, event_t event) { if (session->context->readonly) @@ -556,6 +558,8 @@ const struct gps_type_t driver_superstar2 = { .parse_packet = superstar2_parse_input, /* RTCM handler (using default routine) */ .rtcm_writer = gpsd_write, + /* non-perturbing initial query */ + .init_query = NULL, /* Fire on various lifetime events */ .event_hook = superstar2_event_hook, #ifdef RECONFIGURE_ENABLE |