summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-07-21 13:21:59 -0700
committerGary E. Miller <gem@rellim.com>2016-07-21 13:21:59 -0700
commitf8acefbaefe603283d18a33ef9295568755cf7ea (patch)
treef5a11231b7913930637a406ae674d2db474f2f57 /packet.c
parent8fa4855df1965eff7147f43fccd560b9b51b1eb6 (diff)
downloadgpsd-f8acefbaefe603283d18a33ef9295568755cf7ea.tar.gz
Decode SkytTraq undocumented $STI sentence.
Eric will gag at my abuse of the parser, but I'm not up to a major resturcture today. Not sure how to output the error in JSON.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/packet.c b/packet.c
index d5c50bad..b1b90178 100644
--- a/packet.c
+++ b/packet.c
@@ -607,8 +607,10 @@ static bool nextstate(struct gps_lexer_t *lexer, unsigned char c)
case SOUNDER_LEAD_1:
if (c == 'D') /* Depth-sounder leader accepted */
lexer->state = NMEA_LEADER_END;
+#ifdef SKYTRAQ_ENABLE
else if (c == 'T') /* $ST leader accepted, to $STI */
lexer->state = NMEA_LEADER_END;
+#endif /* SKYTRAQ_ENABLE */
else
return character_pushback(lexer, GROUND_STATE);
break;