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

nrf_drv_adc.c doesn't compile with -DDEBUG_NRF

In nrf_drv_adc.c, there are loads of these ASSERT() macro calls:

ASSERT(mp_state == NRF_DRV_STATE_INITIALIZED);

But there is no variable mp_state. This will fail to compile when the DEBUG_NRF C flag is used in the build. Looks like you meant to use:

ASSERT(m_cb.state == NRF_DRV_STATE_INITIALIZED);

Is this right? Could you please acknowledge and fix in SDK 12?

Related