I am now developing the nRF52805 using SDK 17.1.0, and I use the function bsp_event_to_button_action_assign to assign long-pressing action to activate the system-off function. And the long-pressing action, I use the bsp_button_action_t BSP_BUTTON_ACTION_LONG_PUSH to define. And I am trying to change the value behind the BSP_BUTTON_ACTION_LONG_PUSH, however, every time I change the value, the program will return me an error. I consider that maybe the button action was invalid. However, I have a question about how could I change the pressing time for this long-pressing action?



Meanwhile, I am curious about the value (2), what does it mean? Since there is a reference that @ref BSP_LONG_PUSH_TIMEOUT_MS milliseconds, however, when I 'Go to declaration', it could not find any declaration for this variable.
Looking forward to your reply. Thank you.
#define BSP_BUTTON_ACTION_PUSH (APP_BUTTON_PUSH) /**< Represents pushing a button. See @ref bsp_button_action_t. */ #define BSP_BUTTON_ACTION_RELEASE (APP_BUTTON_RELEASE) /**< Represents releasing a button. See @ref bsp_button_action_t. */ #define BSP_BUTTON_ACTION_LONG_PUSH (2) /**< Represents pushing and holding a button for @ref BSP_LONG_PUSH_TIMEOUT_MS milliseconds. See also @ref bsp_button_action_t. */