Skip to content

Commit 88f1354

Browse files
committed
Fixed unused variables warnings and indentation
1 parent 1bbe616 commit 88f1354

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/arduino/wiring_pulse.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ uint32_t pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout)
7373
// the initial loop; it takes 18 clock cycles per iteration.
7474
unsigned long maxloops = microsecondsToClockCycles(timeout) / 10;
7575

76-
// wait for any previous pulse to end
77-
while ((p.pPort->PIO_PDSR & bit) == stateMask)
76+
// wait for any previous pulse to end
77+
while ((p.pPort->PIO_PDSR & bit) == stateMask)
7878
if (--maxloops == 0)
7979
return 0;
8080

@@ -90,4 +90,4 @@ uint32_t pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout)
9090
return 0;
9191
}
9292
return micros() - start;
93-
}
93+
}

0 commit comments

Comments
 (0)