Skip to content

Commit 65aab36

Browse files
committed
- added break before the '99' case, just to be sure nothing goes wrong when the code is extended in the future
- made comment lines shorter than 80 chars
1 parent 29cf16b commit 65aab36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prototype.pde

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ void loop() {
3333
analogWrite(readData(), readData()); break;
3434
case 4 :
3535
//read analog value
36-
Serial.println(analogRead(readData()));
36+
Serial.println(analogRead(readData())); break;
3737
case 99:
38-
//just dummy to cancel the current read, needed to prevent lock when the PC side
39-
//dropped the "w" that we sent
38+
//just dummy to cancel the current read, needed to prevent lock
39+
//when the PC side dropped the "w" that we sent
4040
break;
4141
}
4242
}
@@ -48,4 +48,4 @@ char readData() {
4848
return Serial.parseInt();
4949
}
5050
}
51-
}
51+
}

0 commit comments

Comments
 (0)