Detecting active build config at compile time
Newbie on the site using NUCLEO-F767ZI - forgive me any unintended indiscretions, but do point them out so I can learn.
How do I detect which build config is active at time of compilation?
If DEBUG is active then I want to printf info to the console
otherwise send the same info via UART
Code example ...
- ifdef DEBUGactive
printf(...);
- else
send(...);
- endif