Skip to content

Commit 2dbc92c

Browse files
author
Jarkko Paso
committed
FHSS: Remove failed handle after successful transmission
1 parent c3aa7d1 commit 2dbc92c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,13 @@ static void fhss_ws_data_tx_done_callback(const fhss_api_t *api, bool waiting_ac
393393
fhss_structure->callbacks.change_channel(fhss_structure->fhss_api, fhss_structure->rx_channel);
394394
}
395395
}
396+
// Buffer was successfully transmitted. Remove stored failure handle if exists.
397+
if (tx_completed == true) {
398+
fhss_failed_tx_t *fhss_failed_tx = fhss_failed_handle_find(fhss_structure, handle);
399+
if (fhss_failed_tx) {
400+
fhss_failed_handle_remove(fhss_structure, handle);
401+
}
402+
}
396403
}
397404

398405
static bool fhss_ws_data_tx_fail_callback(const fhss_api_t *api, uint8_t handle, int frame_type)

0 commit comments

Comments
 (0)