This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BUTTON_1 release issue

I expanded the button events based on example ble_peripheral ble_app_hrs by

bsp_event_to_button_action_assign (0, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_0_RELEASE);
bsp_event_to_button_action_assign (1, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_1_RELEASE);
bsp_event_to_button_action_assign (2, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_2_RELEASE);
bsp_event_to_button_action_assign (3, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_3_RELEASE);

and everything works fine (button press and button release events for all 4 buttons) till I connect the device:

Then button_1 release event (in code: BSP_EVENT_KEY_0_RELEASE) does not appear further more - I do not receive the event also after disconnecting.

Any hint what prevents this event?

Related