sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.9k stars 658 forks source link

Receive repeat is configurable #403

Closed phantomkingx closed 1 year ago

phantomkingx commented 3 years ago

The receive repeat count was hardcoded to 2, this change makes the receive repeat configurable at runtime similar to receive tolerance. The default value is 2 with a method to override the default.

Reasoning: In my use case setting repeat to 1 helped receiver reliability. There may be other use cases where a setting greater than 2 may be useful.