Skip to content

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

Merged
espzav merged 2 commits intoespressif:masterfrom
mpmarfisi:fix/lvgl_port_knob_issue
Jun 23, 2025
Merged

fix(esp_lvgl_port): Register button callbacks only if encoder_enter is set (BSP-675)#571
espzav merged 2 commits intoespressif:masterfrom
mpmarfisi:fix/lvgl_port_knob_issue

Conversation

@mpmarfisi
Copy link
Copy Markdown
Contributor

@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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor Author

@espzav done!

@espzav espzav force-pushed the fix/lvgl_port_knob_issue branch from e5592d4 to ebb59dc Compare June 18, 2025 13:40
Copy link
Copy Markdown
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.

LGTM

@espzav espzav merged commit 1679116 into espressif:master Jun 23, 2025
38 checks passed
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