mirror of
https://github.com/adafruit/Adafruit_GPS.git
synced 2026-10-26 22:10:17 +00:00
Didn't work. Fix.
This didn't work. Changed mySerial to a #define
This commit is contained in:
1 parent
fb579ed581
commit
6457807802
1 file changed
+2
-2
@@ -32,11 +32,11 @@
|
||||
// If using hardware serial, comment
|
||||
// out the above two lines and enable these two lines instead:
|
||||
Adafruit_GPS GPS(&Serial1);
|
||||
HardwareSerial mySerial = Serial1;
|
||||
#define mySerial Serial1
|
||||
|
||||
void setup()
|
||||
{
|
||||
// while (!Serial); // Leonardo will wait till serial connects
|
||||
while (!Serial); // Leonardo will wait till serial connects
|
||||
|
||||
// connect at 115200 so we can read the GPS fast enuf and
|
||||
// also spit it out
|
||||
|
||||
Reference in new issue
Block a user