Skip to content

Commit d93b1f2

Browse files
committed
adapt formatting
1 parent dd8925d commit d93b1f2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ESPiLight.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)