diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-17 22:40:28 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-17 22:40:28 +0000 |
commit | 42113cc2ff3a8fbdcb269d260c0202c01106caa1 (patch) | |
tree | dec0208f9a9720fe0883465257b92fa5692ab921 /gpsd.c | |
parent | 1ff130651422e5d68e7f046d54df3f8606a061f3 (diff) | |
download | gpsd-42113cc2ff3a8fbdcb269d260c0202c01106caa1.tar.gz |
Restore super-raw mode.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |