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); } }