Csr location class shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.
Dependents: CsrLocationDemo CsrLocationDemo
Fork of CsrLocation by
Diff: CsrLocation.cpp
- Revision:
- 14:bb86a6ca6662
- Parent:
- 12:5fb829ce6b82
- Child:
- 15:ee388b77d730
- Child:
- 17:05033198f8f3
diff -r 5fb829ce6b82 -r bb86a6ca6662 CsrLocation.cpp
--- 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();

GPS mbed Shield