diff options
| author | hathach <[email protected]> | 2025-01-25 23:48:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-01-25 23:48:05 +0700 |
| commit | 7641060252481a4dd76a4b286a06a3af6ed1fef9 (patch) | |
| tree | d3d7c03f36f0b1fa8663acfe4af416128666faba /src | |
| parent | 8c7998b0e9783a8f44e544c08cb89a81dcf66b6f (diff) | |
| parent | 37e6f496197e0bc35ca0f71cfef80c19be273ca3 (diff) | |
Merge branch 'master' into zephyr-support
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/net/ncm_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/class/net/ncm_device.c b/src/class/net/ncm_device.c index aac11a058..f9fda0698 100644 --- a/src/class/net/ncm_device.c +++ b/src/class/net/ncm_device.c @@ -857,7 +857,8 @@ bool netd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_ // - if there is a free receive buffer, initiate reception if (!recv_validate_datagram(ncm_interface.recv_tinyusb_ntb, xferred_bytes)) { // verification failed: ignore NTB and return it to free - TU_LOG_DRV("(EE) VALIDATION FAILED. WHAT CAN WE DO IN THIS CASE?\n"); + TU_LOG_DRV("Invalid datatagram. Ignoring NTB\n"); + recv_put_ntb_into_free_list(ncm_interface.recv_tinyusb_ntb); } else { // packet ok -> put it into ready list recv_put_ntb_into_ready_list(ncm_interface.recv_tinyusb_ntb); |
