Csr location class shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.

Dependents:   CsrLocationDemo CsrLocationDemo

Fork of CsrLocation by jie zhao

Files at this revision

API Documentation at this revision

Comitter:
zhjcpi
Date:
Wed Nov 05 02:26:49 2014 +0000
Parent:
12:5fb829ce6b82
Child:
15:ee388b77d730
Child:
17:05033198f8f3
Commit message:
- Fix the sleep issue by processing all the received UART data in one process procedure
; - Extend the static buffer size in _CsrLocProcessRawOspPkt() from 256 to 512 in case overflow when we add more OSP messages in the future
;

Changed in this revision

CsrLocation.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/CsrLocation.cpp	Tue Nov 04 08:41:25 2014 +0000
+++ b/CsrLocation.cpp	Wed Nov 05 02:26:49 2014 +0000
@@ -297,7 +297,7 @@
         return;
     }
 
-    if (in != out) {
+    while (in != out) {
         data = serialBuf[out++];
         out &= (MAX_SERIAL_BUF_LEN - 1);
         switch (protoState) {
@@ -633,7 +633,7 @@
     uint32_t  msgSize;
     CsrResult result;
 
-    static uint8_t buffer[256];
+    static uint8_t buffer[512];
     static unsigned maxMessageSize = 0;
 
     msgSize = _CsrLocCalcMsgSize();