Dependents:   Lab3_Surveillance 6adcSerial

Files at this revision

API Documentation at this revision

Comitter:
keerthanasp
Date:
Tue Feb 01 16:08:08 2011 +0000
Parent:
2:ba6c20754443
Child:
4:c5d054086f2c
Commit message:

Changed in this revision

GPS.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GPS.cpp	Tue Feb 01 15:48:59 2011 +0000
+++ b/GPS.cpp	Tue Feb 01 16:08:08 2011 +0000
@@ -11,7 +11,7 @@
     
     while(1){
         getline();
-        if(sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d",&time, &latitude, &ns, &longitude, &ew, &lock) >=1) {
+        if(scanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d",&time, &latitude, &ns, &longitude, &ew, &lock) >=1) {
             if(!lock) {
                 longitude = 0.0;
                 latitude = 0.0;