-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setting for IRremoteESP8266 tolerance #14555
Conversation
You beat me on this one. It was on my todo list, well done. Theo was also proposing to reuse I'm just worried about leftovers in Is Tolerance==0 even valid? |
Yes, I am agree about the leftovers. About zero tolerance it seems ok based on the IRremoteESP8266 docs - https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRrecv.html#aa091c449db70c65fd0221669df7438ea. I also checked the code and also seems fine to be zero: https://github.com/crankyoldgit/IRremoteESP8266/blob/93af543dcb849918b0c342ed1b6af68953a61d06/src/IRrecv.cpp#L1123 |
I propose to 'sacrifice' the zero value, which does not really makes sense. You can still set tolerance as low as 1%. If tolerance equals zero, then set it to Does it make sense? |
Yeah, it seems a good compromise. I'll make the change. |
Thx. I need to make one final chk if ex tuya voltage id isn't used for version delta. once chkd today i will merge. |
Add command ``SetOption44 1..100`` to set base tolerance percentage for matching incoming IR messages (default 25, max 100) (#14555)
Looks like the "sacrifice" of the zero value to mean default of 25 did not work for existing configs. When upgrading firmware on an IR puck, it stopped working, with While zero for default works when issuing the command |
@sfromis You are right, |
@sfromis It should be fixed now |
Works now, thanks Tested by reverting to a binary from 2022-01-18, |
Description:
Add setting that allow changing IRremoteESP8266 tolerance.
Discussion as ref: #14435
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass