mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
hci_transport_h4: avoid calling hci_transport_h4_trigger_next_read when transport is closed
This commit is contained in:
parent
e80b814d7d
commit
067de866b0
@ -285,8 +285,9 @@ static void hci_transport_h4_block_read(void){
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
packet_handler(hci_packet[0], &hci_packet[1], read_pos-1);
|
||||
// reset state machine before delivering packet to stack as it might close the transport
|
||||
hci_transport_h4_reset_statemachine();
|
||||
packet_handler(hci_packet[0], &hci_packet[1], read_pos-1);
|
||||
break;
|
||||
|
||||
case H4_OFF:
|
||||
|
Loading…
x
Reference in New Issue
Block a user