From 6533ce84495825898f4c016f2c4d7db21d4dd879 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 16 Mar 2005 20:43:37 +0000 Subject: Make sure the out-of-band packet-type value gets set. --- serial.c | 1 + 1 file changed, 1 insertion(+) (limited to 'serial.c') 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; -- cgit v1.2.1