This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new e716ae5e nimble/phy/nrf5x: Fix tx-tx transition
e716ae5e is described below
commit e716ae5ef7b458472ace5823dc1eee4891570d44
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Mon Oct 3 19:30:09 2022 +0200
nimble/phy/nrf5x: Fix tx-tx transition
We need to store current transition before calling txend callback. This
is important in case of tx-tx transition since txend callback will call
ble_phy_tx which overwrites current transition.
---
nimble/drivers/nrf5x/src/ble_phy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nimble/drivers/nrf5x/src/ble_phy.c
b/nimble/drivers/nrf5x/src/ble_phy.c
index 3b9fa1e9..799760df 100644
--- a/nimble/drivers/nrf5x/src/ble_phy.c
+++ b/nimble/drivers/nrf5x/src/ble_phy.c
@@ -1047,12 +1047,12 @@ ble_phy_tx_end_isr(void)
}
#endif
+ transition = g_ble_phy_data.phy_transition;
+
if (g_ble_phy_data.txend_cb) {
g_ble_phy_data.txend_cb(g_ble_phy_data.txend_arg);
}
- transition = g_ble_phy_data.phy_transition;
-
if (transition == BLE_PHY_TRANSITION_TX_RX) {
#if (BLE_LL_BT5_PHY_SUPPORTED == 1)
ble_phy_mode_apply(g_ble_phy_data.phy_rx_phy_mode);