Skip to content
Snippets Groups Projects
Commit 361888c4 authored by Johann Richard's avatar Johann Richard
Browse files

Update RCSwitch.cpp

Fixed a dumb error (duplicate lines)
parent 1498c175
No related branches found
No related tags found
No related merge requests found
/* /*
RCSwitch - Arduino libary for remote control outlet switches RCSwitch - Arduino libary for remote control outlet switches
Copyright (c) 2011 Suat zgr. All right reserved. Copyright (c) 2011 Suat Özgür. All right reserved.
Contributors: Contributors:
- Andre Koehler / info(at)tomate-online(dot)de - Andre Koehler / info(at)tomate-online(dot)de
...@@ -707,13 +707,10 @@ void RCSwitch::handleInterrupt() { ...@@ -707,13 +707,10 @@ void RCSwitch::handleInterrupt() {
repeatCount++; repeatCount++;
changeCount--; changeCount--;
if (repeatCount == 2) { if (repeatCount == 2) {
if (repeatCount == 2) { for(unsigned int i = 1; i < numProto; i++ ) {
for(unsigned int i = 1; i < numProto; i++ ) { if (receiveProtocol(i, changeCount))
if (receiveProtocol(i, changeCount)) exit;
exit; }
}
repeatCount = 0;
}
repeatCount = 0; repeatCount = 0;
} }
changeCount = 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