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

esp_lvgl_port: Add maximum time in ms for sleep LVGL task. #125

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

espzav
Copy link
Collaborator

@espzav espzav commented Feb 8, 2023

There is another minor change in LVGL port, which we need for esp32_s3_eye BSP. We need to not sleep during the LVGL task. I added a maximum time in ms, for which the task can sleep.

@espzav espzav requested a review from tore-espressif February 8, 2023 09:09
@tore-espressif
Copy link
Collaborator

@espzav Could you please set the timeout to 500, in case the user passes 0? This will ensure backward compatibility for cases where users do not use ESP_LVGL_PORT_INIT_CONFIG() macro

@espzav espzav force-pushed the lvgl_port_add_max_sleep_time branch from ae1db85 to 96b030f Compare February 8, 2023 11:38
@espzav
Copy link
Collaborator Author

espzav commented Feb 8, 2023

@espzav Could you please set the timeout to 500, in case the user passes 0? This will ensure backward compatibility for cases where users do not use ESP_LVGL_PORT_INIT_CONFIG() macro

Good point! Fixed. Thank you @tore-espressif

Copy link
Collaborator

@tore-espressif tore-espressif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@espzav espzav merged commit ee83eb4 into master Feb 8, 2023
@espzav espzav deleted the lvgl_port_add_max_sleep_time branch February 8, 2023 12:03
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