File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ void ICACHE_RAM_ATTR ESPiLight::interruptHandler() {
231231
232232 if (pulseTrain.length == 0 ) {
233233 const unsigned long now = micros ();
234- if (now > _lastChange) { // prevent overflow after 70 minutes
234+ if (now > _lastChange) { // prevent overflow after 70 minutes
235235 const unsigned long duration = now - _lastChange;
236236
237237 /* We first do some filtering (same as pilight BPF) */
@@ -248,7 +248,8 @@ void ICACHE_RAM_ATTR ESPiLight::interruptHandler() {
248248 // Debug(_nrpulses);
249249 // Debug('l');
250250 pulseTrain.length = _nrpulses;
251- _actualPulseTrain = (_actualPulseTrain + 1 ) % RECEIVER_BUFFER_SIZE;
251+ _actualPulseTrain =
252+ (_actualPulseTrain + 1 ) % RECEIVER_BUFFER_SIZE;
252253 }
253254 _nrpulses = 0 ;
254255 }
@@ -401,7 +402,8 @@ size_t ESPiLight::parsePulseTrain(uint16_t *pulses, uint8_t length) {
401402 }
402403
403404 /* Reset # of repeats after a certain delay */
404- if (protocol->second < protocol->first || (protocol->second - protocol->first ) > 500000 ) {
405+ if (protocol->second < protocol->first ||
406+ (protocol->second - protocol->first ) > 500000 ) {
405407 protocol->repeats = 0 ;
406408 }
407409
You can’t perform that action at this time.
0 commit comments