From d6ce72896574dadca7e2b5b54511897a411e016c Mon Sep 17 00:00:00 2001 From: jeka Date: Tue, 7 Apr 2026 01:21:54 +0300 Subject: [PATCH] 1 --- src/etcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/etcp.c b/src/etcp.c index 9b42e73..197c74f 100644 --- a/src/etcp.c +++ b/src/etcp.c @@ -999,6 +999,8 @@ void etcp_conn_input(struct ETCP_DGRAM* pkt) { uint16_t len = pkt->data_len; uint16_t ts = pkt->timestamp; // Received timestamp + DEBUG_DEBUG(DEBUG_CATEGORY_ETCP, "[%s] RX pkt", etcp->log_name); + while (len >= 1) { uint8_t type = data[0]; @@ -1162,7 +1164,7 @@ void etcp_conn_input(struct ETCP_DGRAM* pkt) { } else { DEBUG_DEBUG(DEBUG_CATEGORY_ETCP, "[%s] RX dup: seq=%u need=%u asm_len=%d", etcp->log_name, seq, etcp->last_delivered_id+1, etcp->recv_q->count); } - } + } else DEBUG_ERROR(DEBUG_CATEGORY_ETCP, "payload len %d < 5", len); len=0; break; }