Csr location demo application shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.
Dependencies: CsrLocation mbed GPSProvider
Fork of CsrLocationDemo by
Revision 6:d040264b3329, committed 2014-05-28
- Comitter:
- zhjcpi
- Date:
- Wed May 28 11:25:12 2014 +0000
- Parent:
- 5:a4f421140212
- Child:
- 7:5b626d9df186
- Commit message:
- Fix bug, now allow get postion in runing state and PTF mode.
Changed in this revision
| CsrLocationDemo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/CsrLocationDemo.cpp Tue May 27 10:54:52 2014 +0000
+++ b/CsrLocationDemo.cpp Wed May 28 11:25:12 2014 +0000
@@ -154,9 +154,9 @@
break;
case APP_CMD_PTF_GETPOS:
sAppCmd = APP_CMD_IDLE;
- if(pCsrLoc->CsrLocGetState() == CSR_LOC_STATE_RUN)
+ if(pCsrLoc->CsrLocGetState() != CSR_LOC_STATE_RUN)
{
- CSR_APP_LOG_INFO("Cannot execute this command as location is in running state, please stop location firstly.\r\n");
+ CSR_APP_LOG_INFO("Cannot execute this command as location is not in running state, please start location in PTF mode firstly.\r\n");
break;
}
CSR_APP_LOG_INFO("lpm get pos.\r\n");

GPS mbed Shield