Modify the channel in the receiving mode, call the "nrf_esb_stop_rx" function in the "nrf_esb_event_handler" function, but what if the "if (m_nrf_esb_mainstate == NRF_ESB_STATE_PRX)" condition does not hold?
Modify the channel in the receiving mode, call the "nrf_esb_stop_rx" function in the "nrf_esb_event_handler" function, but what if the "if (m_nrf_esb_mainstate == NRF_ESB_STATE_PRX)" condition does not hold?
Hi,
If neither m_nrf_esb_mainstate == NRF_ESB_STATE_PRX or m_nrf_esb_mainstate == NRF_ESB_STATE_PRX_SEND_ACK, then nrf_esb_stop_rx will return NRF_ESB_ERROR_NOT_IN_RX_MODE, which means you're trying to stop receiving mode when the Radio isn't in receiving mode already.
regards
Jared
Hi,
If neither m_nrf_esb_mainstate == NRF_ESB_STATE_PRX or m_nrf_esb_mainstate == NRF_ESB_STATE_PRX_SEND_ACK, then nrf_esb_stop_rx will return NRF_ESB_ERROR_NOT_IN_RX_MODE, which means you're trying to stop receiving mode when the Radio isn't in receiving mode already.
regards
Jared