Skip to content

Commit

Permalink
Merge pull request #101 from uzi18/master
Browse files Browse the repository at this point in the history
PT2260/SC2260 support + small fix
  • Loading branch information
sui77 authored Dec 22, 2016
2 parents 1057cdd + ce40c88 commit 10c0eae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RCSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ unsigned int RCSwitch::nReceivedBitlength = 0;
unsigned int RCSwitch::nReceivedDelay = 0;
unsigned int RCSwitch::nReceivedProtocol = 0;
int RCSwitch::nReceiveTolerance = 60;
const unsigned int RCSwitch::nSeparationLimit = 4600;
const unsigned int RCSwitch::nSeparationLimit = 4300;
// separationLimit: minimum microseconds between received codes, closer codes are ignored.
// according to discussion on issue #14 it might be more suitable to set the separation
// limit to the same time as the 'low' part of the sync signal for the current protocol.
Expand Down Expand Up @@ -647,9 +647,10 @@ bool RECEIVE_ATTR RCSwitch::receiveProtocol(const int p, unsigned int changeCoun
RCSwitch::nReceivedBitlength = (changeCount - 1) / 2;
RCSwitch::nReceivedDelay = delay;
RCSwitch::nReceivedProtocol = p;
return true;
}

return true;
return false;
}

void RECEIVE_ATTR RCSwitch::handleInterrupt() {
Expand Down

0 comments on commit 10c0eae

Please sign in to comment.