Hi i am using nrf52840 latest sdk and i need to disable all printf at a single how can i achieve it
Hi i am using nrf52840 latest sdk and i need to disable all printf at a single how can i achieve it
Hi thanks for reply actually i have more print statements so i wanted to disable print all at a time is there any other method
I have the same question: How can I disable all printf() output easily without having to comment out each one of over 300 lines?
Another option can be to wrap the printf calls with a macro like the NRF_LOG_* macros.
#ifdef ENABLE_PRINTF
#define DEBUG_PRINTF(...) printf(__VA_ARGS__)
#else
#define DEBUG_PRINTF(...)
#endif
Then replace all the printf() calls with DEBUG_PRINTF() using search&replace in your code editor.