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
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
i want to know where change the Speed event time? i think it from softdevice
i want to know where change the Speed event time? i think it from softdevice
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
}
}1.this change Speed Revolution count,no change Speed event time。
I say speed event time is in below function
static void comb_page0_data_log(ant_bsc_combined_page0_data_t const * p_page_data)
LOG_COMB_PAGE0("%03us\n\r", (unsigned int)ANT_BSC_EVENT_TIME_MSEC(p_page_data->speed_event_time));