Fix compile error (#330) on rcswitch

Introduced with https://github.com/1technophile/OpenMQTTGateway/pull/313
This commit is contained in:
Johno Crawford authored and Florian committed 2018-12-17 20:32:58 +01:00
1 parent 4727e328f4
commit 3d459e0582
1 file changed
+2 -2
+2 -2
View File
@@ -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;
@@ -945,4 +945,4 @@ unsigned long Keeloq::ReflectPack(unsigned long PackSrc) {
PackSrc = PackSrc >> 1;
}
return PackOut;
}
}