wireless

Fork of GPS by Simon Ford

Revision:
1:2d4a71c6b68a
Parent:
0:15611c7938a3
--- a/GPS.cpp	Tue Jun 08 14:10:27 2010 +0000
+++ b/GPS.cpp	Wed May 22 20:39:44 2013 +0000
@@ -23,7 +23,7 @@
 #include "GPS.h"
 
 GPS::GPS(PinName tx, PinName rx) : _gps(tx, rx) {
-    _gps.baud(4800);    
+    _gps.baud(9600);    
     longitude = 0.0;
     latitude = 0.0;        
 }
@@ -70,12 +70,14 @@
 
 void GPS::getline() {
     while(_gps.getc() != '$');    // wait for the start of a line
-    for(int i=0; i<256; i++) {
+    for(int i=0; i<1024; i++) {
         msg[i] = _gps.getc();
         if(msg[i] == '\r') {
             msg[i] = 0;
             return;
         }
     }
+    //msg[1023] = 0;
+    //return;
     error("Overflowed message limit");
 }