Skip to content

Commit 22c229d

Browse files
committed
swap begin/wait for esp32
1 parent 0412958 commit 22c229d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/GPS_HardwareSerial_EchoTest/GPS_HardwareSerial_EchoTest.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

2121

2222
void setup() {
23-
// wait for hardware serial to appear
24-
while (!Serial);
25-
2623
// make this baud rate fast enough to we aren't waiting on it
2724
Serial.begin(115200);
2825

26+
// wait for hardware serial to appear
27+
while (!Serial) delay(10);
28+
2929
// 9600 baud is the default rate for the Ultimate GPS
3030
GPSSerial.begin(9600);
3131
}

0 commit comments

Comments
 (0)