Components / Mbed 2 deprecated CsrLocationDemo

Dependencies:   CsrLocation mbed GPSProvider

Fork of CsrLocationDemo by jie zhao

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Wed Nov 05 13:25:15 2014 +0000
Parent:
20:42aca3a90941
Child:
22:05eb1dc5da3c
Commit message:
call sleep() after process(); and remove extraneous header.

Changed in this revision

CsrLocation.lib Show annotated file Show diff for this revision Revisions of this file
CsrLocationDemo.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/CsrLocation.lib	Tue Nov 04 14:25:31 2014 +0000
+++ b/CsrLocation.lib	Wed Nov 05 13:25:15 2014 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/CSR/code/CsrLocation/#1d2f2dccc4ee
+http://developer.mbed.org/teams/CSR/code/CsrLocation/#ee388b77d730
--- a/CsrLocationDemo.cpp	Tue Nov 04 14:25:31 2014 +0000
+++ b/CsrLocationDemo.cpp	Wed Nov 05 13:25:15 2014 +0000
@@ -3,7 +3,6 @@
  */
 
 #include "mbed.h"
-#include "CsrLocation.h"
 #include "GPSProvider.h"
 
 #define PINMAP_GPIO_BTN  D5
@@ -43,7 +42,9 @@
 void
 locationHandler(const GPSProvider::LocationUpdateParams_t *params)
 {
-    CSR_APP_LOG_INFO("received location update\r\n");
+    if (params->valid) {
+        /* application specific handling of location data; */
+    }
 }
 
 int main(void)
@@ -74,6 +75,7 @@
                 break;
             case APP_CMD_IDLE:
                 gps.process();
+                sleep();
                 break;
             case APP_CMD_START:
                 sAppCmd = APP_CMD_IDLE;