File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -368,12 +368,12 @@ void IRrecv::enableIRIn(const bool pullup) {
368
368
// Initialise the ESP32 timer.
369
369
// 80MHz / 80 = 1 uSec granularity.
370
370
timer = timerBegin (_timer_num, 80 , true );
371
- #ifdef DEBUG
371
+ #ifdef IR_DEBUG
372
372
if (timer == NULL ) {
373
373
DPRINT (" FATAL: Unable enable system timer: " );
374
374
DPRINTLN ((uint16_t )_timer_num);
375
375
}
376
- #endif // DEBUG
376
+ #endif // IR_DEBUG
377
377
assert (timer != NULL ); // Check we actually got the timer.
378
378
// Set the timer so it only fires once, and set it's trigger in uSeconds.
379
379
timerAlarmWrite (timer, MS_TO_USEC (params.timeout ), ONCE);
Original file line number Diff line number Diff line change @@ -1503,9 +1503,9 @@ const uint16_t kYorkStateLength = 17;
1503
1503
#define WHYNTER_BITS kWhynterBits
1504
1504
1505
1505
// Turn on Debugging information by uncommenting the following line.
1506
- // #define DEBUG 1
1506
+ // #define IR_DEBUG 1
1507
1507
1508
- #ifdef DEBUG
1508
+ #ifdef IR_DEBUG
1509
1509
#ifdef UNIT_TEST
1510
1510
#define DPRINT (x ) do { \
1511
1511
std::cout << x; \
@@ -1525,18 +1525,18 @@ const uint16_t kYorkStateLength = 17;
1525
1525
Serial.println (x); \
1526
1526
} \
1527
1527
while (0 )
1528
- #endif // ARDUINO
1529
1528
#elif defined(ESP32)
1530
1529
#define DPRINT (x ) do { \
1531
1530
std::cout << x; \
1532
1531
} while (0 )
1533
1532
#define DPRINTLN (x ) do { \
1534
1533
std::cout << x << std::endl; \
1535
1534
} while (0 )
1536
- #else // DEBUG
1535
+ #endif // ARDUINO
1536
+ #else // IR_DEBUG
1537
1537
#define DPRINT (x )
1538
1538
#define DPRINTLN (x )
1539
- #endif // DEBUG
1539
+ #endif // IR_DEBUG
1540
1540
1541
1541
#ifdef UNIT_TEST
1542
1542
#ifndef F
You can’t perform that action at this time.
0 commit comments