kopia lustrzana https://github.com/jgromes/RadioLib
Removed redundant debug begin
rodzic
9e720f56c5
commit
7d00dde817
|
@ -29,9 +29,6 @@ Module::Module(int cs, int rx, int tx, int int0, int int1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Module::init(uint8_t interface, uint8_t gpio) {
|
void Module::init(uint8_t interface, uint8_t gpio) {
|
||||||
DEBUG_BEGIN(9600);
|
|
||||||
DEBUG_PRINTLN();
|
|
||||||
|
|
||||||
switch(interface) {
|
switch(interface) {
|
||||||
case USE_SPI:
|
case USE_SPI:
|
||||||
pinMode(_cs, OUTPUT);
|
pinMode(_cs, OUTPUT);
|
||||||
|
|
|
@ -10,11 +10,9 @@
|
||||||
//#define RADIOLIB_DEBUG
|
//#define RADIOLIB_DEBUG
|
||||||
|
|
||||||
#ifdef RADIOLIB_DEBUG
|
#ifdef RADIOLIB_DEBUG
|
||||||
#define DEBUG_BEGIN(...) { Serial.begin(__VA_ARGS__); }
|
|
||||||
#define DEBUG_PRINT(...) { Serial.print(__VA_ARGS__); }
|
#define DEBUG_PRINT(...) { Serial.print(__VA_ARGS__); }
|
||||||
#define DEBUG_PRINTLN(...) { Serial.println(__VA_ARGS__); }
|
#define DEBUG_PRINTLN(...) { Serial.println(__VA_ARGS__); }
|
||||||
#else
|
#else
|
||||||
#define DEBUG_BEGIN(...) {}
|
|
||||||
#define DEBUG_PRINT(...) {}
|
#define DEBUG_PRINT(...) {}
|
||||||
#define DEBUG_PRINTLN(...) {}
|
#define DEBUG_PRINTLN(...) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue