Skip to content

fix(esp_lvgl_port): Register button callbacks only if encoder_enter is set (BSP-675) #571

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

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

Conversation

mpmarfisi
Copy link

@mpmarfisi mpmarfisi commented May 9, 2025

Change description

When registering an encoder an encoder using lvgl_port_add_encoder(const lvgl_port_encoder_cfg_t * encoder_cfg), if encoder_cfg->encoder_enter is NULL, button callbacks are still registered. This can lead to unintended behavior if no "enter" handler is expected.

@CLAassistant
Copy link

CLAassistant commented May 9, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title fix(esp_lvgl_port): Register encoder button callbacks only if encoder_enter handle is not null fix(esp_lvgl_port): Register encoder button callbacks only if encoder_enter handle is not null (BSP-675) May 9, 2025
@mpmarfisi mpmarfisi changed the title fix(esp_lvgl_port): Register encoder button callbacks only if encoder_enter handle is not null (BSP-675) fix(esp_lvgl_port): Register button callbacks only if encoder_enter is set (BSP-675) May 9, 2025
@espzav espzav added this to the esp_lvgl_port 2.6.1 milestone May 13, 2025
Copy link
Collaborator

@espzav espzav left a comment

Choose a reason for hiding this comment

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

@mpmarfisi Thank you for this fix. LGTM
Please remove version change (we will release esp_lvgl_port later with updated CHANGELOG file)

@mpmarfisi
Copy link
Author

@espzav done!

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.

3 participants