File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 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) {
6565 Serial.println (TICKS_HIGH (desired_us - MARK_EXCESS), DEC);
6666 return measured_ticks >= TICKS_LOW (desired_us - MARK_EXCESS) && measured_ticks <= TICKS_HIGH (desired_us - MARK_EXCESS);
6767}
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
6873#endif
6974
7075void IRsend::sendNEC (unsigned long data, int nbits)
Original file line number Diff line number Diff line change 175175#define TICKS_LOW (us ) (int) (((us)*LTOL/USECPERTICK))
176176#define TICKS_HIGH (us ) (int) (((us)*UTOL/USECPERTICK + 1))
177177
178- #ifndef DEBUG
179- int MATCH (int measured , int desired ) {return measured >= TICKS_LOW (desired ) && measured <= TICKS_HIGH (desired );}
180- int MATCH_MARK (int measured_ticks , int desired_us ) {return MATCH (measured_ticks , (desired_us + MARK_EXCESS ));}
181- int MATCH_SPACE (int measured_ticks , int desired_us ) {return MATCH (measured_ticks , (desired_us - MARK_EXCESS ));}
182- // Debugging versions are in IRremote.cpp
183- #endif
184-
185178// receiver states
186179#define STATE_IDLE 2
187180#define STATE_MARK 3
You can’t perform that action at this time.
0 commit comments