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
@@ -69,4 +69,4 @@ enum TFMINI_PARSE_STATE {
TFMINI_PARSE_STATE6_GOT_CHECKSUM
};
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);