Skip to content

Commit 5c7829d

Browse files
committed
Fix bug that limits search to 1 device per wire
The do-while loop is missing a do. What happens without the do is a basic block, followed by while-loop with an empty body.
1 parent 7e9a2b7 commit 5c7829d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/oneWireSearch/oneWireSearch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ uint8_t findDevices(int pin)
4545
Serial.print("\nuint8_t pin");
4646
Serial.print(pin, DEC);
4747
Serial.println("[][8] = {");
48-
{
48+
do {
4949
count++;
5050
Serial.println(" {");
5151
for (uint8_t i = 0; i < 8; i++)

0 commit comments

Comments
 (0)