From 4ac9700a2b0aa9585adc212a18faee7cca1c60bf Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Thu, 2 Jul 2015 08:27:54 +0100 Subject: [PATCH] update LinkLossService with changes to GattWriteCallbackParams --- ble/services/LinkLossService.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ble/services/LinkLossService.h b/ble/services/LinkLossService.h index a7c86fa..66a1ac2 100644 --- a/ble/services/LinkLossService.h +++ b/ble/services/LinkLossService.h @@ -81,7 +81,7 @@ class LinkLossService { * 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(params->data); } }