File tree 1 file changed +5
-3
lines changed 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() {
231
231
232
232
if (pulseTrain.length == 0 ) {
233
233
const unsigned long now = micros ();
234
- if (now > _lastChange) { // prevent overflow after 70 minutes
234
+ if (now > _lastChange) { // prevent overflow after 70 minutes
235
235
const unsigned long duration = now - _lastChange;
236
236
237
237
/* We first do some filtering (same as pilight BPF) */
@@ -248,7 +248,8 @@ void ICACHE_RAM_ATTR ESPiLight::interruptHandler() {
248
248
// Debug(_nrpulses);
249
249
// Debug('l');
250
250
pulseTrain.length = _nrpulses;
251
- _actualPulseTrain = (_actualPulseTrain + 1 ) % RECEIVER_BUFFER_SIZE;
251
+ _actualPulseTrain =
252
+ (_actualPulseTrain + 1 ) % RECEIVER_BUFFER_SIZE;
252
253
}
253
254
_nrpulses = 0 ;
254
255
}
@@ -401,7 +402,8 @@ size_t ESPiLight::parsePulseTrain(uint16_t *pulses, uint8_t length) {
401
402
}
402
403
403
404
/* 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 ) {
405
407
protocol->repeats = 0 ;
406
408
}
407
409
You can’t perform that action at this time.
0 commit comments