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

Why does SDK v12 not have ifndef statements on nrf_drv_adc.h?

I am attempting to use nrf_drv_adc.h in a project where I am splitting up my methods across many C files and, to my surprise, nrf_drv_adc.h does not have any include guards defined.

I think that this is a bug in the SDK? Where do I go to report it? Is this the right place?

Parents
  • Hi Robert

    Thanks for spotting this, it's clearly a bug in the header file.

    I will make sure to forward it do the SDK guys :)

    Best regards
    Torbjørn

  • Thankyou! Much appreciated! In the meantime, I have solved the problem by creating a header file for my project that wraps the include of nrf_drv_adc.h in include guards. That at-least lets me keep working with the current SDK.

Reply
  • Thankyou! Much appreciated! In the meantime, I have solved the problem by creating a header file for my project that wraps the include of nrf_drv_adc.h in include guards. That at-least lets me keep working with the current SDK.

Children
No Data