Skip to content

Commit

Permalink
Revert "Disabled temporarily tx slot check for testing purposes (ARMm…
Browse files Browse the repository at this point in the history
…bed#2287)" (ARMmbed#2289)

This reverts commit 8cc0ff5.
  • Loading branch information
Jarkko Paso authored Jan 31, 2020
1 parent 8cc0ff5 commit 35970d7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/Service_Libs/fhss/fhss_ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,9 @@ static bool fhss_ws_check_tx_allowed(fhss_structure_t *fhss_structure)
* v
* | BC | RX | TX | RX | TX | RX | TX | BC |
*/
// Temporarily commented this check for testing purposes
// if (tx_slot_begin_ms < remaining_time_ms) {
// return false;
// }
if (tx_slot_begin_ms < remaining_time_ms) {
return false;
}
tx_slot_begin_ms = tx_slot_begin_ms - (((tx_slot_begin_ms - remaining_time_ms) / (2 * fhss_structure->ws->txrx_slot_length_ms)) * (2 * fhss_structure->ws->txrx_slot_length_ms));
uint32_t rx_slot_begin_ms = tx_slot_begin_ms - fhss_structure->ws->txrx_slot_length_ms;
/* Check if we are currently on TX slot.
Expand Down

0 comments on commit 35970d7

Please sign in to comment.