summaryrefslogtreecommitdiff
path: root/driver_tsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-28 14:58:37 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-28 14:58:37 -0500
commit9fad32af3e77074e55ebfb27104e33b5665acb0c (patch)
tree7753797a94697fde3e5f55a01b1ec4aa5b0f422e /driver_tsip.c
parentdeb2a9076958580d12357c1c0c60791e8e6352eb (diff)
downloadgpsd-9fad32af3e77074e55ebfb27104e33b5665acb0c.tar.gz
Verbosity suppression. All regression tests pass.
Diffstat (limited to 'driver_tsip.c')
-rw-r--r--driver_tsip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver_tsip.c b/driver_tsip.c
index 53d53bb5..6a47183c 100644
--- a/driver_tsip.c
+++ b/driver_tsip.c
@@ -960,6 +960,8 @@ static ssize_t tsip_control_send(struct gps_device_t *session,
static void tsip_event_hook(struct gps_device_t *session, event_t event)
{
+ if (session->context->readonly)
+ return;
/* FIX-ME: Resending this might not be needed on reactivation */
if (event == event_identified && event == event_reactivate) {
unsigned char buf[100];