mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 15:35:30 +00:00
hci_transport_h4: avoid calling hci_transport_h4_trigger_next_read when transport is closed
This commit is contained in:
parent
63b7463190
commit
e80b814d7d
@ -291,7 +291,7 @@ static void hci_transport_h4_block_read(void){
|
|||||||
|
|
||||||
case H4_OFF:
|
case H4_OFF:
|
||||||
bytes_to_read = 0;
|
bytes_to_read = 0;
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND
|
#ifdef ENABLE_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND
|
||||||
@ -303,8 +303,10 @@ static void hci_transport_h4_block_read(void){
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (h4_state != H4_OFF) {
|
||||||
hci_transport_h4_trigger_next_read();
|
hci_transport_h4_trigger_next_read();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void hci_transport_h4_block_sent(void){
|
static void hci_transport_h4_block_sent(void){
|
||||||
switch (tx_state){
|
switch (tx_state){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user