Skip to content

Commit 2183869

Browse files
author
Juha Heiskanen
committed
FHSS Ack tx done fix
Added missing possible channel switch after ACK tx done process. If channel switch happen middle of ack send we never switch channel before this.
1 parent fb4309d commit 2183869

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ static int8_t mac_data_interface_tx_done_cb(protocol_interface_rf_mac_setup_s *r
387387

388388
if (rf_ptr->mac_ack_tx_active) {
389389
rf_ptr->mac_ack_tx_active = false;
390+
if (rf_ptr->fhss_api) {
391+
//SET tx completed false because ack isnot never queued
392+
rf_ptr->fhss_api->data_tx_done(rf_ptr->fhss_api, false, false, 0xff);
393+
}
390394
if (rf_ptr->active_pd_data_request) {
391395

392396
if (rf_ptr->active_pd_data_request->fcf_dsn.securityEnabled) {

0 commit comments

Comments
 (0)