Skip to content
Snippets Groups Projects
Commit 0145854d authored by s.oezguer's avatar s.oezguer
Browse files

ignore some noise on receive

parent 0bf0255b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment