Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change portTICK_RATE_MS to portTICK_PERIOD_MS #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

avidadearthur
Copy link

Error message:

app_main.c:114:58: error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS'?

Explanation:

The portTICK_RATE_MS constant is deprecated in newer versions of FreeRTOS and has been replaced with portTICK_PERIOD_MS.

Solution:

Replace portTICK_RATE_MS with portTICK_PERIOD_MS in the code.
For example, replace the line:
ESP_ERROR_CHECK(smbus_set_timeout(smbus_info, 1000 / portTICK_RATE_MS));
with:
ESP_ERROR_CHECK(smbus_set_timeout(smbus_info, 1000 / portTICK_PERIOD_MS));

@DavidAntliff
Copy link
Owner

Thanks for the PR, I will look to merge this once I move the project to ESP-IDF v5.x.

kagurazakayashi added a commit to kagurazakayashi/esp32-smbus that referenced this pull request Jul 31, 2024
kagurazakayashi added a commit to kagurazakayashi/esp32-i2c-lcd1602 that referenced this pull request Jul 31, 2024
kagurazakayashi added a commit to kagurazakayashi/esp32-i2c-lcd1602-example that referenced this pull request Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants