diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-05-24 07:50:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-05-24 07:50:42 +0000 |
commit | f09895b256992813c07814b7e2cf5d8efabf73f3 (patch) | |
tree | e911c53c82842cf675eb5533aaaeda3a9dc72914 /serial.c | |
parent | c0e29b52b62a7eb751f35f046d9966351bec00be (diff) | |
download | gpsd-f09895b256992813c07814b7e2cf5d8efabf73f3.tar.gz |
Correct error in hunt logic.
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -132,6 +132,7 @@ int gpsd_open(struct gps_device_t *session) */ #define SNIFF_RETRIES 600 +#include "stdio.h" int gpsd_next_hunt_setting(struct gps_device_t *session) /* advance to the next hunt setting */ { @@ -143,10 +144,10 @@ int gpsd_next_hunt_setting(struct gps_device_t *session) session->baudindex = 0; if (session->gpsdata.stopbits++ >= 2) return 0; /* hunt is over, no sync */ - gpsd_set_speed(session, - rates[session->baudindex], - session->gpsdata.stopbits); } + gpsd_set_speed(session, + rates[session->baudindex], + session->gpsdata.stopbits); } return 1; /* keep hunting */ |