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)); } }