mirror of https://github.com/labapart/gattlib
gattlib: Fix disconnection handler type check
parent
0142c33dd8
commit
4b9252bad1
|
@ -73,7 +73,7 @@ void gattlib_call_notification_handler(struct gattlib_handler *handler, const uu
|
|||
}
|
||||
|
||||
void gattlib_call_disconnection_handler(struct gattlib_handler *handler) {
|
||||
if (handler->type == NATIVE_NOTIFICATION) {
|
||||
if (handler->type == NATIVE_DISCONNECTION) {
|
||||
handler->disconnection_handler(handler->user_data);
|
||||
}
|
||||
#if defined(WITH_PYTHON)
|
||||
|
|
Loading…
Reference in New Issue