summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-03-16 20:43:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-03-16 20:43:37 +0000
commit6533ce84495825898f4c016f2c4d7db21d4dd879 (patch)
tree3ceb58fd3571c6668d3308ee76a4be84017c620f /serial.c
parente5f03240eda38792451f56773105364c2a961ca4 (diff)
downloadgpsd-6533ce84495825898f4c016f2c4d7db21d4dd879.tar.gz
Make sure the out-of-band packet-type value gets set.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index 9135e887..df09d316 100644
--- a/serial.c
+++ b/serial.c
@@ -68,6 +68,7 @@ int gpsd_set_speed(struct gps_session_t *session,
tcflush(session->gNMEAdata.gps_fd, TCIOFLUSH);
}
+ session->packet_type = BAD_PACKET;
if ((session->packet_type = packet_sniff(session)) == BAD_PACKET)
return 0;