tfmini : restructure parsing logic to always publish latest measurement

This commit is contained in:
Mohammed Kabir
2018-08-26 12:05:09 +02:00
committed by Lorenz Meier
parent 3afa018954
commit 38bae7d401
3 changed files with 49 additions and 35 deletions
@@ -63,7 +63,7 @@ const char *parser_state[] = {
};
#endif
int tfmini_parser(char c, char *parserbuf, unsigned *parserbuf_index, enum TFMINI_PARSE_STATE *state, float *dist)
int tfmini_parse(char c, char *parserbuf, unsigned *parserbuf_index, enum TFMINI_PARSE_STATE *state, float *dist)
{
int ret = -1;
//char *end;