Ignore base91 errors in compressed position packet's course/speed/altitude fields.

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@42 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Heikki Hannikainen 2008-03-02 16:11:16 +00:00
parent dce1690e5c
commit 543d6c0edf
1 changed files with 2 additions and 0 deletions

View File

@ -145,9 +145,11 @@ int parse_aprs_compressed(struct pbuf_t *pb, const char *body, const char *body_
for (i = 1; i <= 8; i++)
if (body[i] < 0x21 || body[i] >= 0x7b)
return 0;
/* we ignore course+speed and altitude, so let's ignore errors in there, too
for (i = 10; i <= 12; i++)
if (body[i] < 0x21 || body[i] >= 0x7b)
return 0;
*/
fprintf(stderr, "\tpassed length and format checks, sym %c%c\n", sym_table, sym_code);