pulsein function infinite loop

This will be fixed in Arduino 0022: pulseIn() now times out while measuring the pulse, not just while wai… · arduino/Arduino@4dad135 · GitHub