Commits

Ferry Huberts  committed c346897

pud: nmealib: fix return value of nmea_parser_init

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>

  • Participants
  • Parent commits bf28d1f

Comments (0)

Files changed (1)

File lib/pud/nmealib/src/parser.c

   assert(parser);
   memset(&parser->sentence, 0, sizeof(parser->sentence));
   reset_sentence_parser(parser, SKIP_UNTIL_START);
-  return 0;
+  return 1;
 }
 
 static bool nmea_parse_sentence_character(nmeaPARSER *parser, const char * c) {