mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 06:40:10 +00:00
fix regression from r2882
This commit is contained in:
parent
4d7157c318
commit
3ac2fe5667
@ -158,7 +158,7 @@ hci_connection_t * hci_connection_for_handle(hci_con_handle_t con_handle){
|
|||||||
linked_list_iterator_init(&it, &hci_stack->connections);
|
linked_list_iterator_init(&it, &hci_stack->connections);
|
||||||
while (linked_list_iterator_has_next(&it)){
|
while (linked_list_iterator_has_next(&it)){
|
||||||
hci_connection_t * item = (hci_connection_t *) linked_list_iterator_next(&it);
|
hci_connection_t * item = (hci_connection_t *) linked_list_iterator_next(&it);
|
||||||
if ( item->con_handle != con_handle ) {
|
if ( item->con_handle == con_handle ) {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user