diff options
author | Gary E. Miller <gem@rellim.com> | 2016-07-21 00:10:01 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-07-21 00:10:01 -0700 |
commit | 8fa4855df1965eff7147f43fccd560b9b51b1eb6 (patch) | |
tree | 373097188bd72a4ab1c40a001edc5792e914f660 /packet.c | |
parent | e021a9629e1d38b162bb28ffe3a0f1d36397979b (diff) | |
download | gpsd-8fa4855df1965eff7147f43fccd560b9b51b1eb6.tar.gz |
Another step to decode SkyTraq $STI.
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -102,6 +102,7 @@ PERMISSIONS * $TI -- Turn indicator (Airmar PB200). * $EC -- Electronic Chart Display & Information System (ECDIS) * $SD -- Depth Sounder + * $ST -- $STI, Skytraq Debug Output * $YX -- Transducer (used by some Airmar equipment including PB100) * $P -- Vendor-specific sentence * @@ -606,6 +607,8 @@ 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; + else if (c == 'T') /* $ST leader accepted, to $STI */ + lexer->state = NMEA_LEADER_END; else return character_pushback(lexer, GROUND_STATE); break; |