esp32: trigger packet sent after sending packet to VHCI as host_send_pkt_available_cb does not work on C6 with ESP-IDF /v5.3

This commit is contained in:
Matthias Ringwald 2024-09-30 22:45:22 +02:00
parent b39ba5be90
commit 6426418c2b

View File

@ -130,7 +130,8 @@ static void host_send_pkt_available_cb(void){
return;
}
btstack_run_loop_execute_on_main_thread(&packet_send_callback_context);
// On C6, this function isn't called. Instead we already trigger BTstack's "Packet Sent" in TX functino
// btstack_run_loop_execute_on_main_thread(&packet_send_callback_context);
}
static int host_recv_pkt_cb(uint8_t *data, uint16_t len){
@ -296,6 +297,10 @@ static int transport_send_packet(uint8_t packet_type, uint8_t *packet, int size)
// send packet
esp_vhci_host_send_packet(packet, size);
// queue send of next packet
btstack_run_loop_execute_on_main_thread(&packet_send_callback_context);
return 0;
}