summaryrefslogtreecommitdiff
path: root/driver_nmea2000.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-25 07:35:41 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-25 07:35:41 -0400
commit2f7a78002f012c7ed322767cf3e413b961a640b4 (patch)
tree50d95ee10f3a8e972489e5502a75dd970483a15f /driver_nmea2000.c
parent3517cd53afabac201b3563f58a33dc15fd35bfdd (diff)
downloadgpsd-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_nmea2000.c')
-rw-r--r--driver_nmea2000.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_nmea2000.c b/driver_nmea2000.c
index 147eba57..dc6eb474 100644
--- a/driver_nmea2000.c
+++ b/driver_nmea2000.c
@@ -1675,6 +1675,7 @@ const struct gps_type_t driver_nmea2000 = {
.get_packet = nmea2000_get, /* how to get a packet */
.parse_packet = nmea2000_parse_input, /* how to interpret a packet */
.rtcm_writer = NULL, /* Don't send RTCM to this */
+ .init_query = NULL, /* non-perturbing query */
.event_hook = NULL,
#ifdef RECONFIGURE_ENABLE
.speed_switcher = NULL, /* no speed switcher */