High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: ble/services/LinkLossService.h
- Revision:
- 728:997ba5e7b3b6
- Parent:
- 727:1a1f5c5aedfe
- Child:
- 834:44e2b14acd89
diff -r 1a1f5c5aedfe -r 997ba5e7b3b6 ble/services/LinkLossService.h --- a/ble/services/LinkLossService.h Mon Jul 06 10:10:34 2015 +0100 +++ b/ble/services/LinkLossService.h Mon Jul 06 10:10:34 2015 +0100 @@ -73,7 +73,7 @@ alertLevel = newLevel; } -private: +protected: /** * This callback allows receiving updates to the AlertLevel Characteristic. * @@ -81,7 +81,7 @@ * Information about the characterisitc being updated. */ virtual void onDataWritten(const GattWriteCallbackParams *params) { - if (params->charHandle == alertLevelChar.getValueHandle()) { + if (params->handle == alertLevelChar.getValueHandle()) { alertLevel = *reinterpret_cast<const AlertLevel_t *>(params->data); } }