I keep getting the following error when compiling. What file am I missing or what setting do I need to set in sdk_config? I am getting this error when compiling in nrf_queue.c
\nrf_queue.c", Error: #136: struct "<unnamed>" has no field "p_log" NRF_LOG_INST_WARNING(p_queue->p_log, "Queue full. Overwriting oldest element.");..
\nrf_queue.c", Error: #136: struct "<unnamed>" has no field "p_log" NRF_LOG_INST_DEBUG(p_queue->p_log, "pushed element 0x%08X, status:%d", p_element, status);
I am assuming I am missing a header file or did not set something correctly in the sdk_config.h.
Thanks for your help!
Looking at the definition of nrf_queue_t it seems that the use of NRF_LOG_INSTANCE_PTR_DECLARE() will make it so that the p_log field only exists if logging (NRF_LOG_ENABLED) and log filters (NRF_LOG_FILTERS_ENABLED) are enabled in sdk_config.h.
What if I do not want logging at all in my code as it brings in unnecessary files that I do not use? Can I not turn it off (NRF_LOG_ENABLED to 0 in sdk_config.h) and compile nrf_queue library?