From a7db0509df81262115f36109b067f317f9271787 Mon Sep 17 00:00:00 2001 From: upday118 Date: Fri, 21 Feb 2025 15:02:45 +0000 Subject: [PATCH] =?UTF-8?q?update=20b=5Fprotocol=5Fcore.c.=20=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96head=5Fmatch=5Fflg=E6=A0=87=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: upday118 --- b_protocol_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/b_protocol_core.c b/b_protocol_core.c index 1fc7f9d..61b559b 100644 --- a/b_protocol_core.c +++ b/b_protocol_core.c @@ -52,6 +52,7 @@ uint8_t b_frame_init(b_frame_type *pframe, b_frame_init_type *pframeinit) pframe->frame_init.get_frame_len_cb = pframeinit->get_frame_len_cb; pframe->frame_init.head = pframeinit->head; pframe->frame_init.head_len = pframeinit->head_len; + pframe->head_match_flg = 0; err = ring_buf_init(&pframe->_frame_ring, pframe->_in_frame_buffer, MAX_INPUT_FRAME_BUFFER_SIZE); b_frame_fifo_clear(pframe); -- Gitee