summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-17 22:40:28 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-17 22:40:28 +0000
commit42113cc2ff3a8fbdcb269d260c0202c01106caa1 (patch)
treedec0208f9a9720fe0883465257b92fa5692ab921 /gpsd.c
parent1ff130651422e5d68e7f046d54df3f8606a061f3 (diff)
downloadgpsd-42113cc2ff3a8fbdcb269d260c0202c01106caa1.tar.gz
Restore super-raw mode.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 8687317b..469af916 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -2202,12 +2202,19 @@ int main(int argc, char *argv[])
* raw mode.
*/
(void)throttled_write(channel->subscriber, (char *)device->packet.outbuffer, device->packet.outbuflen);
+ } else if (channel->subscriber->policy.raw > 1) {
+ /*
+ * Also, simply copy if user has
+ * specified super-raw mode.
+ */
+ (void)throttled_write(channel->subscriber,
+ (char *)device->packet.outbuffer,
+ device->packet.outbuflen);
} else {
char buf2[MAX_PACKET_LENGTH*3+2];
buf2[0] = '\0';
- /* Some kinds of data is automatically passed through */
#ifdef BINARY_ENABLE
#if defined(RTCM104V2_ENABLE) || defined(RTCM104V3_ENABLE)
if ((device->gpsdata.set & (RTCM2_SET | RTCM3_SET)) == 0)