This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

tiny bug in nrfx_twim_xfer(): always logs as warning

Hi,

just for your information:

the function nrfx_twim_xfer() prints always a warning, even if there was no transmission error. I guess NRFX_LOG_WARNING() should be logging with DEBUG level. Or at least conditional: only if there is an error it uses the warning level for a log.

    NRFX_LOG_HEXDUMP_DEBUG(p_xfer_desc->p_secondary_buf,
                           p_xfer_desc->secondary_length * sizeof(p_xfer_desc->p_secondary_buf[0]));

    err_code = twim_xfer(p_cb, (NRF_TWIM_Type *)p_instance->p_twim, p_xfer_desc, flags);
    NRFX_LOG_WARNING("Function: %s, error code: %s.",
                     __func__,
                     NRFX_LOG_ERROR_STRING_GET(err_code));

I am using nRF5_SDK_16.0.0_98a08e2

regards,

pioupus

Related