Skip to content

Commit 35970d7

Browse files
author
Jarkko Paso
authored
Revert "Disabled temporarily tx slot check for testing purposes (ARMmbed#2287)" (ARMmbed#2289)
This reverts commit 8cc0ff5.
1 parent 8cc0ff5 commit 35970d7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,9 @@ static bool fhss_ws_check_tx_allowed(fhss_structure_t *fhss_structure)
587587
* v
588588
* | BC | RX | TX | RX | TX | RX | TX | BC |
589589
*/
590-
// Temporarily commented this check for testing purposes
591-
// if (tx_slot_begin_ms < remaining_time_ms) {
592-
// return false;
593-
// }
590+
if (tx_slot_begin_ms < remaining_time_ms) {
591+
return false;
592+
}
594593
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));
595594
uint32_t rx_slot_begin_ms = tx_slot_begin_ms - fhss_structure->ws->txrx_slot_length_ms;
596595
/* Check if we are currently on TX slot.

0 commit comments

Comments
 (0)