It works now with following message:
$GPRMC,122536.0,A,4350.237769,N,01826.423315
Signed-off-by: Petr Štetiar <ynezz@true.cz>
}
}
- if (strlen(nmea_params[3].str) != 9 || strlen(nmea_params[5].str) != 10) {
- ERROR("lat/lng have invalid string length\n");
+ if (strlen(nmea_params[3].str) < 9 || strlen(nmea_params[5].str) < 10) {
+ ERROR("lat/lng have invalid string length %d<9, %d<10\n",
+ strlen(nmea_params[3].str), strlen(nmea_params[5].str));
} else {
int latd, latm, lats;
int lngd, lngm, lngs;