From 2a340c5fc572bcccc5e17809940afc021f3a13d7 Mon Sep 17 00:00:00 2001 From: "Planck (Lu Zeyu)" Date: Mon, 11 Sep 2023 16:24:24 +0800 Subject: [PATCH] fix(test_etm): fix vTaskDelay caused ci failure --- .../esp_hw_support/test_apps/etm/main/test_systimer_etm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hw_support/test_apps/etm/main/test_systimer_etm.c b/components/esp_hw_support/test_apps/etm/main/test_systimer_etm.c index 81b6e48f2cde..6d2ce1e02ec8 100644 --- a/components/esp_hw_support/test_apps/etm/main/test_systimer_etm.c +++ b/components/esp_hw_support/test_apps/etm/main/test_systimer_etm.c @@ -115,7 +115,7 @@ TEST_CASE("esp_timer_etm_event", "[etm]") TEST_ESP_OK(esp_timer_start_periodic(periodic_timer, 500000)); // should see a 1Hz square wave on the GPIO - vTaskDelay(pdMS_TO_TICKS(1200)); + esp_rom_delay_us(1200000); // check the final GPIO level TEST_ASSERT_EQUAL(1, gpio_get_level(output_gpio));