jgh
Fork of BLE_API by
Diff: ble/services/LinkLossService.h
- Revision:
- 726:6884e374e2eb
- Parent:
- 723:71507679c9b2
- Child:
- 727:1a1f5c5aedfe
diff -r f4a355b35cf8 -r 6884e374e2eb ble/services/LinkLossService.h --- a/ble/services/LinkLossService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/LinkLossService.h Thu Jul 02 09:06:12 2015 +0100 @@ -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); } }