wait for serial port before looping
This commit is contained in:
parent
a26eb6e6df
commit
a8b3697d06
|
@ -256,6 +256,9 @@ void setup() {
|
|||
|
||||
// turn on the serial port
|
||||
Serial.begin(9600);
|
||||
while (!Serial) {
|
||||
; // wait for serial port to connect
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue