update LinkLossService with changes to GattWriteCallbackParams

This commit is contained in:
Rohit Grover 2015-07-02 08:27:54 +01:00
parent 417b857d1b
commit 4ac9700a2b

View file

@ -81,7 +81,7 @@ protected:
* 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);
}
}