Press buttons to activate the LED.
Dependencies: BLE_API nRF51822
Fork of Puck by
Revision 25:cd6703df9501, committed 2015-03-09
- Comitter:
- aleksanb
- Date:
- Mon Mar 09 13:38:22 2015 +0000
- Parent:
- 24:21b5ecbc84ea
- Commit message:
- Add power usage note to log.h
Changed in this revision
Log.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Log.h Mon Mar 09 13:23:54 2015 +0000 +++ b/Log.h Mon Mar 09 13:38:22 2015 +0000 @@ -14,10 +14,16 @@ * limitations under the License */ - #ifndef __LOG__H__ #define __LOG__H__ +/** + * Warning: remove LOG_LEVEL_* defines in production for major power savings. + * + * Defining a log level will set up a serial connection to use for logging. + * This serial connection sets up a timer prohibiting the mbed chip + * from entering low power states, drawing ~1.4mAh instead of ~20µAh with logging disabled. + */ #ifdef LOG_LEVEL_VERBOSE #define __PUCK_LOG_LEVEL_VERBOSE__