Odometry Pedometer using nRF51822 and ADXL345
Dependencies: ADXL345 BLE_API mbed nRF51822
Fork of BLE_CycleSpeedCadence by
Revision 33:e63df636d3b2, committed 2014-07-08
- Comitter:
- Rohit Grover
- Date:
- Tue Jul 08 11:18:33 2014 +0100
- Parent:
- 30:3dc9e6f2bc8c
- Child:
- 34:44dc6efc0b50
- Commit message:
- Remove a const attribute for a global variable used to initialize the location characteristic.
V7 of the Softdevice110 can't initialize characteristics from flash memory;
this is a regression from V6.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jul 04 15:10:19 2014 +0100
+++ b/main.cpp Tue Jul 08 11:18:33 2014 +0100
@@ -40,7 +40,7 @@
static uint8_t bpm[2] = {0x00, hrmCounter};
GattCharacteristic hrmRate(GattCharacteristic::UUID_HEART_RATE_MEASUREMENT_CHAR, bpm, sizeof(bpm), sizeof(bpm),
GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY);
-static const uint8_t location = 0x03; /* Finger */
+static uint8_t location = 0x03; /* Finger */
GattCharacteristic hrmLocation(GattCharacteristic::UUID_BODY_SENSOR_LOCATION_CHAR,
(uint8_t *)&location, sizeof(location), sizeof(location),
GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ);
