mirror of https://github.com/labapart/gattlib
bugfix: Passing user provided pointer to notification handler
Instead of connection object pointer, user should receive pointer to context it registered in gattlib_register_notificationpull/86/head
parent
f0b1f7c5ef
commit
1402183edd
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue