fix hci_number_free_acl_slots_for_handle to return num free classic slots if no le slots are available. Fixes issue #415

This commit is contained in:
matthias.ringwald@gmail.com 2014-08-24 20:38:20 +00:00
parent b12f5dffe7
commit cb00d3aa12

View File

@ -294,7 +294,10 @@ uint8_t hci_number_free_acl_slots_for_handle(hci_con_handle_t con_handle){
return free_slots_classic;
default:
return free_slots_le;
if (hci_stack->le_acl_packets_total_num){
return free_slots_le;
}
return free_slots_classic;
}
}