number of freed packets sanitized number of completed

This commit is contained in:
mila@ringwald.ch 2014-09-26 13:38:57 +00:00
parent 2f2c3f50b1
commit 23bed257d1

View File

@ -928,7 +928,13 @@ static void event_handler(uint8_t *packet, int size){
log_error("hci_number_completed_packet lists unused con handle %u", handle);
continue;
}
conn->num_acl_packets_sent -= num_packets;
if (conn->num_acl_packets_sent >= num_packets){
conn->num_acl_packets_sent -= num_packets;
} else {
log_error("hci_number_completed_packets, more slots freed then sent.");
conn->num_acl_packets_sent = 0;
}
// log_info("hci_number_completed_packet %u processed for handle %u, outstanding %u", num_packets, handle, conn->num_acl_packets_sent);
}
break;