Skip to content

Commit

Permalink
Fix gattlib_connection_is_connected
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviermartin committed Apr 8, 2024
1 parent ddc2146 commit a1da475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/gattlib_common_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void _gattlib_connection_is_connected(gpointer data, gpointer user_data)

printf("_gattlib_connection_is_connected: Check device in adapter:%s\n", adapter->id);

GSList *device_entry = g_slist_find_custom(adapter->devices, user_data, _is_device_connection);
GSList *device_entry = g_slist_find_custom(adapter->devices, connection_is_connected->connection, _is_device_connection);
if (device_entry == NULL) {
printf("_gattlib_connection_is_connected: Did not find device %s\n", connection_is_connected->connection->device->device_id);
return;
Expand Down

0 comments on commit a1da475

Please sign in to comment.