Sarahi Moran / Mbed 2 deprecated AVC_gps224

Dependencies:   mbed

Fork of AVC_gps22 by Sarahi Moran

Files at this revision

API Documentation at this revision

Comitter:
Sarahi
Date:
Thu Oct 09 17:25:30 2014 +0000
Parent:
0:59cfe30c337c
Child:
2:fb8c2df6e7e8
Commit message:
v2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 09 17:11:51 2014 +0000
+++ b/main.cpp	Thu Oct 09 17:25:30 2014 +0000
@@ -4,6 +4,8 @@
 Serial gps(PTC17, PTC16);
 Serial pc(USBTX, USBRX);
 
+
+int v = 0;
 int main(){
     gps.baud(4800);
     while (true) {
@@ -12,6 +14,7 @@
         if (gps.readable()){
             c = gps.getc();
             if (c == '$') {
+                c = v;
                 gps.scanf ("%199s",str);
                 pc.printf("%s \n",str);
                 //while (n >=