1technophile / NewRemoteSwitch

NewRemoteSwitch library v1.2.0 (20140128) for Arduino 1.0 Made by Randy Simons http://randysimons.nl/
GNU General Public License v3.0
38 stars 19 forks source link

Set maximum delay for stop bit. #7

Closed philfifi closed 4 years ago

philfifi commented 4 years ago

In my environment, 433MHz is quite noisy and there are plenty of spikes. This triggers in state -1, with a big duration (~65000). Thus, the min1Period gets a big value, and all of the received pulses get skipped because "too short". The state machine stays forever in state 0, with all pulses skipped. Setting a maximum duration value prevents this livelock.

1technophile commented 4 years ago

Thanks for the PR