summaryrefslogtreecommitdiff
path: root/isgps.c
diff options
context:
space:
mode:
Diffstat (limited to 'isgps.c')
-rw-r--r--isgps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isgps.c b/isgps.c
index 27cf92e1..9d465479 100644
--- a/isgps.c
+++ b/isgps.c
@@ -180,8 +180,6 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session,
bool(*length_check) (struct gps_packet_t *),
size_t maxlen, unsigned int c)
{
- enum isgpsstat_t res;
-
/* ASCII characters 64-127, @ through DEL */
if ((c & MAG_TAG_MASK) != MAG_TAG_DATA) {
gpsd_report(ISGPS_ERRLEVEL_BASE + 1,
@@ -222,6 +220,8 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session,
} /* end while */
}
if (session->isgps.locked) {
+ enum isgpsstat_t res;
+
res = ISGPS_SYNC;
if (session->isgps.curr_offset > 0) {