Run a K30 CO2 sensor on a Nordic nRF52DK Board
Fork of mbed-os-example-ble-BatteryLevel by
Revision 29:7a6aff8c9468, committed 2017-05-10
- Comitter:
- mbed_official
- Date:
- Wed May 10 10:15:11 2017 +0100
- Parent:
- 28:b8afe00e80bb
- Child:
- 30:dacb92ff8643
- Commit message:
- Merge pull request #78 from ashok-rao/master
Using predefined macro for EVENT SIZE.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-ble
Changed in this revision
| source/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/main.cpp Tue May 09 14:45:18 2017 +0100
+++ b/source/main.cpp Wed May 10 10:15:11 2017 +0100
@@ -28,9 +28,7 @@
static uint8_t batteryLevel = 50;
static BatteryService* batteryServicePtr;
-static EventQueue eventQueue(
- /* event count */ 16 * /* event size */ 32
-);
+static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
{
