After nrf_drv_twi_tx() function and nrf_drv_twi_rx() function, m_xfer_done is checked using APP_ERROR_CHECK(m_xfer_done). What is the significance of checking m_xfer_done? What is the output we will get by checking the status of m_xfer_done?
Thanks
After nrf_drv_twi_tx() function and nrf_drv_twi_rx() function, m_xfer_done is checked using APP_ERROR_CHECK(m_xfer_done). What is the significance of checking m_xfer_done? What is the output we will get by checking the status of m_xfer_done?
Thanks
Hello,
m_xfer_done is checked using APP_ERROR_CHECK(m_xfer_done)
Where exactly do you see this check?
APP_ERROR_CHECKs should be used on all error codes returned by SDK driver function calls, such as the error code returned by nrf_drv_twi_rx, etc., and not on boolean (or any other) variables.
Best regards,
Karl