Fix ETCP test: server connection registration and packet handling
- etcp_connections.c: Add incoming server connections to instance->connections list - test_etcp_simple_traffic.c: Fix ETCP_FRAGMENT handling in check_packet_received() - test_etcp_simple_traffic.c: Fix packet size check (ETCP adds headers to payload) - Reduced debug verbosity in ll_queue.c and debug_config.c
This commit is contained in:
1 parent
a34035f41f
commit
985ed5c4b1
18 files changed
+34
-24
No files matched your search
+4
-4
@@ -38,10 +38,10 @@ void log_dump(const char* prefix, const uint8_t* data, size_t len) {
|
||||
DEBUG_INFO(DEBUG_CATEGORY_ETCP, "%s: len=%zu hex=%s", prefix, len, hex_buf);
|
||||
|
||||
// Additional debug info for first few bytes
|
||||
if (len >= 2) {
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_ETCP, "%s: first_bytes=%02x%02x last_bytes=%02x%02x",
|
||||
prefix, data[0], data[1], data[len-2], data[len-1]);
|
||||
}
|
||||
// if (len >= 2) {
|
||||
// DEBUG_DEBUG(DEBUG_CATEGORY_ETCP, "%s: first_bytes=%02x%02x last_bytes=%02x%02x",
|
||||
// prefix, data[0], data[1], data[len-2], data[len-1]);
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user