Maniacbug RF24 on Nucleo STM32
Dependents: NRF24_master_slave NRF24_master_slave
Diff: RF24.cpp
- Revision:
- 3:af425ff47d9f
- Parent:
- 2:2ccc2e2a42d8
- Child:
- 4:baf3b07be1a7
--- a/RF24.cpp Fri Jan 16 22:17:48 2015 +0000 +++ b/RF24.cpp Thu Jan 22 00:00:49 2015 +0000 @@ -10,6 +10,18 @@ #include "RF24_config.h" #include "RF24.h" +#if 0 +//Enable debug +#include <cstdio> +#define DBG(x, ...) std::printf("[RF24 : DBG]"x, ##__VA_ARGS__); +#define WARN(x, ...) std::printf("[RF24 : WARN]"x, ##__VA_ARGS__); +#define ERR(x, ...) std::printf("[RF24 : ERR]"x, ##__VA_ARGS__); +#else +//Disable debug +#define DBG(x, ...) +#define WARN(x, ...) +#define ERR(x, ...) +#endif /** * Timer for RF24 network