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; }