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
I have the same question: How can I disable all printf() output easily without having to comment out each one of over 300 lines?
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.