diff options
author | Gary E. Miller <gem@rellim.com> | 2016-07-21 13:21:59 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-07-21 13:21:59 -0700 |
commit | f8acefbaefe603283d18a33ef9295568755cf7ea (patch) | |
tree | f5a11231b7913930637a406ae674d2db474f2f57 /packet.c | |
parent | 8fa4855df1965eff7147f43fccd560b9b51b1eb6 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |