bugfix: Passing user provided pointer to notification handler

Instead of connection object pointer, user should receive
pointer to context it registered in gattlib_register_notification
pull/86/head
Milan Pandurov 2019-03-03 22:33:41 +00:00 committed by Olivier Martin
parent f0b1f7c5ef
commit 1402183edd
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ gboolean on_handle_characteristic_property_change(
MAX_LEN_UUID_STR + 1,
&uuid);
connection->notification_handler(&uuid, data, data_length, user_data);
connection->notification_handler(&uuid, data, data_length, connection->notification_user_data);
break;
}
}