diff --git a/RCSwitch.cpp b/RCSwitch.cpp index 74df2b49ce913243aed9a0035e1826a9a0d7fccf..253273ce32848c727f4ea97e461217d4f836b9e2 100644 --- a/RCSwitch.cpp +++ b/RCSwitch.cpp @@ -389,7 +389,9 @@ void RCSwitch::receiveInterrupt() { } } code = code >> 1; - (mCallback)(code, changeCount/2, delay, timings); + if (changeCount > 6) { // ignore < 4bit values as there are no devices sending 4bit values => noise + (mCallback)(code, changeCount/2, delay, timings); + } repeatCount = 0; } changeCount = 0;