From d8218b5aed4f267b9a241e3aa7258dc305696520 Mon Sep 17 00:00:00 2001 From: kuba Date: Sat, 17 Feb 2024 14:35:02 +0100 Subject: [PATCH] fix: anemometer example fixed delay macro for ESP32 --- examples/anemometer/default/main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/anemometer/default/main/main.c b/examples/anemometer/default/main/main.c index 690d8987..ee5728e4 100644 --- a/examples/anemometer/default/main/main.c +++ b/examples/anemometer/default/main/main.c @@ -36,6 +36,6 @@ void app_main() while(1){ anemometer_get_wind_speed(wind_sensor,&val); ESP_LOGI(TAG, "Wind speed = %.2f m/s", val); - vTaskDelay(1000 / portTICK_RATE_MS); + vTaskDelay(pdMS_TO_TICKS(1000)); } }