Skip to content

samples: bluetooth: le_periph_blinky: fix button state to mirror live GPIO - #896

Open
CijaSathish-AlifSemi wants to merge 1 commit into
alifsemi:mainfrom
CijaSathish-AlifSemi:ble_button_fix
Open

samples: bluetooth: le_periph_blinky: fix button state to mirror live GPIO#896
CijaSathish-AlifSemi wants to merge 1 commit into
alifsemi:mainfrom
CijaSathish-AlifSemi:ble_button_fix

Conversation

@CijaSathish-AlifSemi

@CijaSathish-AlifSemi CijaSathish-AlifSemi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Button characteristic toggled on press and ignored release, instead of mirroring the live button state. Fixed to reflect pressed/released in real time.

… GPIO

button_update_handler toggled char0_val on every press edge and ignored
release, so the notified button state didn't match the physical button
and required two presses to cycle back to 0. Mirror the live GPIO level
instead so the characteristic reflects pressed/released in real time.

Signed-off-by: Cija Sathishkumar <cija.sathishkumar@alifsemi.com>
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.

1 participant