Skip to content

Commit

Permalink
Update external/nmea/parse.c
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 1, 2024
1 parent 2104b13 commit a764514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/nmea/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ int nmea_parse_GPRMC( const char *buff, int buff_sz, nmeaGPRMC *pack )
&( pack->utc.day ), &( pack->utc.mon ), &( pack->utc.year ),
&( pack->declination ), &( pack->declin_ew ), &( pack->mode ), &( pack->navstatus ) );

if ( nsen != 14 && nsen != 15 && nsen != 16 )
if ( nsen < 14 || nsen > 16 )
{
nmea_error( "G?RMC parse error!" );
return 0;
Expand Down

0 comments on commit a764514

Please sign in to comment.