for u-blox
Fork of C027_Support by
Revision 139:72b4265c91d1, committed 2017-01-04
- Comitter:
- kityann
- Date:
- Wed Jan 04 11:28:57 2017 +0000
- Parent:
- 129:7b747676de86
- Commit message:
- for u-blox experimence;
Changed in this revision
GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
MDM.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/GPS.cpp Fri Aug 21 09:13:56 2015 +0000 +++ b/GPS.cpp Wed Jan 04 11:28:57 2017 +0000 @@ -28,8 +28,9 @@ return UNKNOWN | pipe->get(buf,unkn); if (nmea == WAIT && fr) return WAIT; - if (nmea > 0) + if (nmea > 0){ return NMEA | pipe->get(buf,nmea); + } // UBX protocol pipe->set(unkn); @@ -225,6 +226,7 @@ val = (val - i) / 0.6 + i; if (ch == 'S' || ch == 'W') val = -val; + return true; } return false;
--- a/MDM.h Fri Aug 21 09:13:56 2015 +0000 +++ b/MDM.h Wed Jan 04 11:28:57 2017 +0000 @@ -545,7 +545,7 @@ typedef struct { char* buf; IP ip; int port; } USORFparam; static int _cbUSORF(int type, const char* buf, int len, USORFparam* param); typedef struct { char* buf; char* num; } CMGRparam; - static int _cbCUSD(int type, const char* buf, int len, char* buf); + static int _cbCUSD(int type, const char* buf, int len, char* resp); // sms typedef struct { int* ix; int num; } CMGLparam; static int _cbCMGL(int type, const char* buf, int len, CMGLparam* param);