diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-02-28 14:58:37 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-28 14:58:37 -0500 |
commit | 9fad32af3e77074e55ebfb27104e33b5665acb0c (patch) | |
tree | 7753797a94697fde3e5f55a01b1ec4aa5b0f422e /driver_superstar2.c | |
parent | deb2a9076958580d12357c1c0c60791e8e6352eb (diff) | |
download | gpsd-9fad32af3e77074e55ebfb27104e33b5665acb0c.tar.gz |
Verbosity suppression. All regression tests pass.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r-- | driver_superstar2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c index 675719d4..ad58a56a 100644 --- a/driver_superstar2.c +++ b/driver_superstar2.c @@ -429,6 +429,9 @@ superstar2_dispatch(struct gps_device_t * session, unsigned char *buf, static void superstar2_event_hook(struct gps_device_t *session, event_t event) { + if (session->context->readonly) + return; + if (event == event_identified) { /*@ +charint @*/ unsigned char version_msg[] = { 0x01, 0x2d, 0xd2, 0x00, 0x00, 0x01 }; |