mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 00:40:38 +00:00
number of freed packets sanitized number of completed
This commit is contained in:
parent
2f2c3f50b1
commit
23bed257d1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user