mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
sx1280: rework tx done state machine
This commit is contained in:
parent
90825e06ef
commit
782349f44c
@ -723,6 +723,8 @@ static void radio_fetch_rx_pdu(void){
|
||||
|
||||
/** Radio IRQ handlers */
|
||||
static void radio_on_tx_done(void ){
|
||||
switch (ll_state){
|
||||
case LL_STATE_ADVERTISING:
|
||||
switch (radio_state){
|
||||
case RADIO_W4_TX_DONE_TO_RX:
|
||||
receive_response();
|
||||
@ -730,8 +732,10 @@ static void radio_on_tx_done(void ){
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (ll_state){
|
||||
break;
|
||||
case LL_STATE_CONNECTED:
|
||||
btstack_assert(radio_state == RADIO_W4_TX_DONE_TO_RX);
|
||||
receive_response();
|
||||
radio_fetch_rx_pdu();
|
||||
preload_tx_buffer();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user