Nile Mittow / Mbed 2 deprecated HL_GwoopsGPS_Example

Dependencies:   mbed

Fork of HL_GPS_Example by Nile Mittow

Revision:
22:9551b2ce17c9
Parent:
21:dfa20810d1d0
--- 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");