From 6f5a2f73a2a9eddae9a6a22fa76cefe8ba4d1c7f Mon Sep 17 00:00:00 2001 From: Hu Rui Date: Wed, 15 Apr 2026 18:05:32 +0800 Subject: [PATCH] test(uhci): fix false-pass bug in UHCI receive test reset RX buffer state between UHCI test transactions --- components/esp_driver_uart/test_apps/uhci/main/test_uhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_driver_uart/test_apps/uhci/main/test_uhci.c b/components/esp_driver_uart/test_apps/uhci/main/test_uhci.c index 869166fe62..405d42d5ac 100644 --- a/components/esp_driver_uart/test_apps/uhci/main/test_uhci.c +++ b/components/esp_driver_uart/test_apps/uhci/main/test_uhci.c @@ -158,6 +158,8 @@ static void uhci_receive_test(void *arg) } ctx->receive_size = 0; + ctx->p_receive_data = receive_data; + memset(receive_data, 0, DATA_LENGTH); } vQueueDelete(ctx->uhci_queue);