updated tinyframe

sipo
Ondřej Hruška 7 years ago
parent 15ebb6ab10
commit d05330c0c0
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 3
      TinyFrame/TinyFrame.c
  2. 2
      TinyFrame/TinyFrame.h

@ -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);

@ -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

Loading…
Cancel
Save