Skip to content

Commit

Permalink
fix: anemometer example fixed delay macro for ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
QB4-dev committed Feb 17, 2024
1 parent 6fa60a6 commit d8218b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/anemometer/default/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit d8218b5

Please sign in to comment.