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.
@@ -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);
