File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ int MATCH_SPACE(int measured_ticks, int desired_us) {
65
65
Serial.println (TICKS_HIGH (desired_us - MARK_EXCESS), DEC);
66
66
return measured_ticks >= TICKS_LOW (desired_us - MARK_EXCESS) && measured_ticks <= TICKS_HIGH (desired_us - MARK_EXCESS);
67
67
}
68
+ #else
69
+ int MATCH (int measured, int desired) {return measured >= TICKS_LOW (desired) && measured <= TICKS_HIGH (desired);}
70
+ int MATCH_MARK (int measured_ticks, int desired_us) {return MATCH (measured_ticks, (desired_us + MARK_EXCESS));}
71
+ int MATCH_SPACE (int measured_ticks, int desired_us) {return MATCH (measured_ticks, (desired_us - MARK_EXCESS));}
72
+ // Debugging versions are in IRremote.cpp
68
73
#endif
69
74
70
75
void IRsend::sendNEC (unsigned long data, int nbits)
Original file line number Diff line number Diff line change 172
172
#define TICKS_LOW (us ) (int) (((us)*LTOL/USECPERTICK))
173
173
#define TICKS_HIGH (us ) (int) (((us)*UTOL/USECPERTICK + 1))
174
174
175
- #ifndef DEBUG
176
- int MATCH (int measured , int desired ) {return measured >= TICKS_LOW (desired ) && measured <= TICKS_HIGH (desired );}
177
- int MATCH_MARK (int measured_ticks , int desired_us ) {return MATCH (measured_ticks , (desired_us + MARK_EXCESS ));}
178
- int MATCH_SPACE (int measured_ticks , int desired_us ) {return MATCH (measured_ticks , (desired_us - MARK_EXCESS ));}
179
- // Debugging versions are in IRremote.cpp
180
- #endif
181
-
182
175
// receiver states
183
176
#define STATE_IDLE 2
184
177
#define STATE_MARK 3
You can’t perform that action at this time.
0 commit comments