From 35970d7ea92ce68aaaafbd1e4362f754d72ef56a Mon Sep 17 00:00:00 2001 From: Jarkko Paso Date: Fri, 31 Jan 2020 09:47:37 +0200 Subject: [PATCH] Revert "Disabled temporarily tx slot check for testing purposes (#2287)" (#2289) This reverts commit 8cc0ff508bb0ea6daa386de01d37abed62e070d9. --- source/Service_Libs/fhss/fhss_ws.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/Service_Libs/fhss/fhss_ws.c b/source/Service_Libs/fhss/fhss_ws.c index a09f6e76366..50c330f88ae 100644 --- a/source/Service_Libs/fhss/fhss_ws.c +++ b/source/Service_Libs/fhss/fhss_ws.c @@ -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.