C027_Support library plus AT Comand for dialing.
Fork of C027_Support_New by
Revision 24:0e287a85ac9e, committed 2014-04-08
- Comitter:
- mazgch
- Date:
- Tue Apr 08 11:15:33 2014 +0000
- Parent:
- 23:05a1aeeb5fd9
- Parent:
- 20:535ef78655df
- Child:
- 25:4045d02e44f1
- Commit message:
- merged branches
Changed in this revision
--- a/GPS.cpp Tue Apr 08 11:11:20 2014 +0000 +++ b/GPS.cpp Tue Apr 08 11:15:33 2014 +0000 @@ -204,10 +204,9 @@ return false; } -bool GPSParser::getNmeaAngle(int ix, char* buf, int len, double& d) +bool GPSParser::getNmeaAngle(int ix, char* buf, int len, double& val) { char ch; - double val; if (getNmeaItem(ix,buf,len,val) && getNmeaItem(ix+1,buf,len,ch) && ((ch == 'S') || (ch == 'N') || (ch == 'E') || (ch == 'W'))) { @@ -216,7 +215,6 @@ val = (val - i) / 0.6 + i; if (ch == 'S' || ch == 'W') val = -val; - d = val; return true; } return false;
--- a/GPS.h Tue Apr 08 11:11:20 2014 +0000 +++ b/GPS.h Tue Apr 08 11:15:33 2014 +0000 @@ -33,7 +33,7 @@ static bool getNmeaItem(int ix, char* buf, int len, double& val); static bool getNmeaItem(int ix, char* buf, int len, int& val, int base/*=10*/); static bool getNmeaItem(int ix, char* buf, int len, char& val); - static bool getNmeaAngle(int ix, char* buf, int len, double& d); + static bool getNmeaAngle(int ix, char* buf, int len, double& val); protected: static int _getMessage(Pipe<char>* pipe, char* buf, int len); static int _parseNmea(Pipe<char>* pipe, int len);