Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HL_GPS_Example by
Diff: main.cpp
- Revision:
- 22:9551b2ce17c9
- Parent:
- 21:dfa20810d1d0
diff -r dfa20810d1d0 -r 9551b2ce17c9 main.cpp
--- a/main.cpp Thu Mar 16 23:10:57 2017 +0000
+++ b/main.cpp Fri Mar 17 00:11:56 2017 +0000
@@ -4,12 +4,14 @@
#define GPSBUFFSIZE 256
Serial pc(USBTX, USBRX); // tx, rx
-Serial sgps(PTC15, PTC14, 9600);
+Serial sgps(PTC15, PTC14);
int main() {
pc.printf("Where am I? ----------- \n\r");
+ sgps.baud(9600);
GwoopsGPS xgps(&sgps);
+ xgps.init();
while(1) {
if (xgps.isValid()) {
pc.printf("\r\n");
