We use SDK12.10 Main.c (d:\nordic\5142xx\software\org-sdk12.1\nrf5_sdk_12.1.0_0d23e2a\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay.
My question: After add follow code, the program don't run, why don't run?
void radio_hand_event(bool event_active)
{
static uint16_t count = 0;
if ( m_conn_handle != BLE_CONN_HANDLE_INVALID )
{
}else
{
advertising_init();
NRF_LOG_INFO("\r\n radio_hand_event count:%d\r\n", ++count);
}
}
int main function add follow code:
uint32_t error_code = ble_radio_notification_init(NRF_RADIO_PRIORITY_NORMAL, NRF_RADIO_NOTIFICATION_DISTANCE_5500US, radio_hand_event);
NRF_LOG_INFO("ble_radio_notification_init err:%d\r\n", error_code);