adafruit/IR-Commander — pull request #1 by osbock (2012-02-20 06:03:54+00:00)
Title: Prevent buffer overflows and improve comparison

Changed sample buffer to be a constant NUMPULSES.
Insure that the listenforIR() doesn't overflow.
If you make the buffer small, there may be ir code transmitted that gets picked up the next time around the loop. I should probably eat them until the timeout.

Also only compare the smallest of the receive sample or the sample to be compared. This allows you to edit down the captured samples to minimum size.