We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cc0ff5 commit 35970d7Copy full SHA for 35970d7
source/Service_Libs/fhss/fhss_ws.c
@@ -587,10 +587,9 @@ static bool fhss_ws_check_tx_allowed(fhss_structure_t *fhss_structure)
587
* v
588
* | BC | RX | TX | RX | TX | RX | TX | BC |
589
*/
590
-// Temporarily commented this check for testing purposes
591
-// if (tx_slot_begin_ms < remaining_time_ms) {
592
-// return false;
593
-// }
+ if (tx_slot_begin_ms < remaining_time_ms) {
+ return false;
+ }
594
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));
595
uint32_t rx_slot_begin_ms = tx_slot_begin_ms - fhss_structure->ws->txrx_slot_length_ms;
596
/* Check if we are currently on TX slot.
0 commit comments