Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit a5493d2

Browse files
author
Jarkko Paso
committed
FHSS: Do not send TX failure if TX in progress in channel change
1 parent 958991a commit a5493d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

source/MAC/IEEE802_15_4/mac_fhss_callbacks.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ int mac_set_channel(const fhss_api_t *fhss_api, uint8_t channel_number)
6666
if (!mac_setup) {
6767
return -1;
6868
}
69-
// If TX is active, send internal CCA fail event. MAC state machine would crash without TX done event.
70-
if (mac_setup->macRfRadioTxActive == true) {
71-
mac_setup->dev_driver->phy_driver->phy_tx_done_cb(mac_setup->dev_driver->id, 1, PHY_LINK_TX_FAIL, 0, 0);
72-
}
69+
7370
return mac_mlme_rf_channel_change(mac_setup, channel_number);
7471
}
7572

0 commit comments

Comments
 (0)