Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
Introduced with 1technophile#313
  • Loading branch information
johnou authored Dec 17, 2018
1 parent 4727e32 commit 4716ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rc-switch/RCSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ void RECEIVE_ATTR RCSwitch::handleInterrupt() {
}

// заносим в массив длительность очередного принятого импульса
if (changeCount > 0 & duration < 100) { // игнорируем шумовые всплески менее 100 мкс
if (changeCount > 0 && duration < 100) { // игнорируем шумовые всплески менее 100 мкс
RCSwitch::timings[changeCount-1] += duration;
} else {
RCSwitch::timings[changeCount++] = duration;
Expand Down Expand Up @@ -945,4 +945,4 @@ unsigned long Keeloq::ReflectPack(unsigned long PackSrc) {
PackSrc = PackSrc >> 1;
}
return PackOut;
}
}

0 comments on commit 4716ce2

Please sign in to comment.