Hi
when i call twi_master_transfer function in for(;;) loop of file ble_app_hrs project.
Kindly tell me what to do for that.
for (;;) { for(i=0;i<10;i++) {
twi_master_transfer(addw, dataW, 2, 1);
delay();
twi_master_transfer(addr, dataR, 20,1);
dataW[0]=dataW[0]+20;
err_code = ble_hrs_heart_rate_measurement_send(&m_hrs, dataR);
}
if (
(err_code != NRF_SUCCESS)
&&
(err_code != NRF_ERROR_INVALID_STATE)
&&
(err_code != BLE_ERROR_NO_TX_BUFFERS)
&&
(err_code != BLE_ERROR_GATTS_SYS_ATTR_MISSING)
)
{
APP_ERROR_HANDLER(err_code);
}
// Switch to a low power state until an event is available for the application
err_code = sd_app_event_wait();
APP_ERROR_CHECK(err_code);
}
}