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_proto.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_proto.c')
-rw-r--r-- | driver_proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver_proto.c b/driver_proto.c index d0de2410..10fb05ac 100644 --- a/driver_proto.c +++ b/driver_proto.c @@ -512,6 +512,8 @@ const struct gps_type_t driver__proto__binary = { .parse_packet = _proto__parse_input, /* RTCM handler (using default routine) */ .rtcm_writer = pass_rtcm, + /* non-perturbing initial query (e.g. for version) */ + .init_query = NULL, /* fire on various lifetime events */ .event_hook = _proto__event_hook, #ifdef RECONFIGURE_ENABLE |