Press buttons to activate the LED.
Dependencies: BLE_API nRF51822
Fork of Puck by
Diff: Log.h
- Revision:
- 25:cd6703df9501
- Parent:
- 12:8a8cc109f048
diff -r 21b5ecbc84ea -r cd6703df9501 Log.h --- 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__