improved NMEA handling
@@ -4417,15 +4417,13 @@ while(0 <= restlen)
}
else if(option->option_code == OPTIONCODE_NMEA)
{
- if(option->option_length >= 66)
+ if(fh_nmea != NULL)
+ {
+ if(option->option_length >= 48)
{
nmealen = option->option_length;
memset(&nmeasentence, 0, NMEA_MAX);
memcpy(&nmeasentence, &option->data, option->option_length);
- if(fh_nmea != NULL)
- {
- if(option->option_length > 30)
- {
csc = 0;
csn = 0;
pn = 1;
@@ -4447,7 +4445,6 @@ while(0 <= restlen)
}
}
}
- }
optr += option->option_length +padding +OH_SIZE;
restlen -= option->option_length +padding +OH_SIZE;
}
