updated tinyframe

This commit is contained in:
2018-01-12 10:18:09 +01:00
parent 15ebb6ab10
commit d05330c0c0
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -498,7 +498,7 @@ void _TF_FN TF_AcceptChar(TinyFrame *tf, unsigned char c)
#if !TF_USE_SOF_BYTE
if (tf->state == TFState_SOF) {
TF_ParsBeginFrame();
pars_begin_frame(tf);
}
#endif
@@ -616,6 +616,7 @@ void _TF_FN TF_AcceptChar(TinyFrame *tf, unsigned char c)
//@formatter:on
// we get here after finishing HEAD, if no data are to be received - handle and clear
// TODO verify - this seems unreachable under normal circumstances
if (tf->len == 0 && tf->state == TFState_DATA) {
TF_HandleReceivedMessage(tf);
TF_ResetParser(tf);
+1 -1
View File
@@ -10,7 +10,7 @@
* Upstream URL: https://github.com/MightyPork/TinyFrame
*/
#define TF_VERSION "2.0.4"
#define TF_VERSION "2.1.0"
//---------------------------------------------------------------------------
#include <stdint.h> // for uint8_t etc