Removed redundant debug begin
This commit is contained in:
parent
9e720f56c5
commit
7d00dde817
2 changed files with 0 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue