GPSlibrary
Revision 7:a7d233fc6578, committed 2019-09-02
- Comitter:
- Nerosho
- Date:
- Mon Sep 02 14:16:30 2019 +0000
- Parent:
- 5:c9ab983a9b3b
- Commit message:
- 0902;
Changed in this revision
GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c9ab983a9b3b -r a7d233fc6578 GPS.cpp --- a/GPS.cpp Mon Aug 26 11:39:19 2019 +0000 +++ b/GPS.cpp Mon Sep 02 14:16:30 2019 +0000 @@ -21,11 +21,12 @@ //Serial gps(_tx,_rx); //gps.baud(9600); - if(_gps.readable()) { + //if(_gps.readable()) { getGPS[0]='\0'; GPSread=0; while(1) { + recvGPS=_gps.getc(); char s[2]; @@ -40,17 +41,19 @@ GPSread=1; return 1; + } + return 0; - break; + //break; } } - } + //}//readableの終わり // wait(1); - return 0; + //return 0; } \ No newline at end of file