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

[SL-UP] Button handling in dimmer-switch app #363

Open
wants to merge 6 commits into
base: release_2.5-1.4
Choose a base branch
from

Conversation

arun-silabs
Copy link
Contributor

@arun-silabs arun-silabs commented Mar 20, 2025

Description

Issue : MATTER-4819

This PR fixes the button handling issues seen in light-switch application. When the light-switch app has been extended as dimmer-switch app by adding level control cluster, the button functionality was changed. Button0 handling was moved from baseApplication to LightSwitchMgr. Due to this, a few features on Button0 short-press are missed.
In this PR, moved the button handling from LightSwitchMgr to AppTask (similar to all the apps) and added the logic to invoke BaseApplication::ButtonHandler on Buton0 press.

Testing

Tested the button events manually on 917SOC board.

@arun-silabs arun-silabs requested a review from a team as a code owner March 20, 2025 10:51
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