long push event not working when i pressing button 1 for 5 sec in nrf52832 dev kit board

Hello sir,

              I am using nrf52832 as Dev kit board with using Button 1 for  long press event for an interval of  5 sec .I have defined the BT0_LONG_PUSH  as  BSP_EVENT_KEY_0 which is working  as  Button 1  by using the function as  bsp_event_to_button_action_assign(BSP_BOARD_BUTTON_0, BSP_BUTTON_ACTION_LONG_PUSH, BT0_LONG_PUSH);When i pressing the Button 1  then it does not work for 5 sec, the long push event  work  instantly i pressed the Button 1 . I have also changed  the  BSP_LONG_PUSH_TIMEOUT_MS (5000) but still push button not working for 5 sec.

I have also changed the Button 1 to Button 2 by changing the function bsp_event_to_button_action_assign(BSP_BOARD_BUTTON_1, BSP_BUTTON_ACTION_LONG_PUSH, BT0_LONG_PUSH); but still  long push event not working when i pressed the Button 2 for 5 sec.

What changes i required so that the long push event work when i hold the Button for 5sec.

Related