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

ANT BSC Speed event time not change After a period of work although button press or release

nRF51_SDK_10.0.0\examples\ant\ant_plus\ant_bsc\bsc_tx\combined\button\pca10028 

 ANT BSC Speed event time   not change After a period of work  although button press or release 

Parents Reply
  • This should be handled by the following code:

    #if MODIFICATION_TYPE == MODIFICATION_TYPE_BUTTON
    /**@brief Function for handling bsp events.
     */
    /** @snippet [ANT BSC simulator button] */
    void bsp_evt_handler(bsp_event_t evt)
    {
        switch (evt)
        {
            case BSP_EVENT_KEY_0:
                ant_bsc_simulator_increment(&m_ant_bsc_simulator);
                break;
    
            case BSP_EVENT_KEY_1:
                ant_bsc_simulator_decrement(&m_ant_bsc_simulator);
                break;
    
            default:
                return; // no implementation needed
        }
    }

Children
Related