Add _MS suffix to TX_SWITCH_BACKOFF_AFTER_RX_ON constant

This commit is contained in:
Simon Ruderich 2025-01-02 09:00:46 +01:00
parent dcd0b1a4a1
commit f3f0733a3f
4 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@
#define TX_SWITCH_BACKOFF_PREAMBLE_MS 42 // only relevant if packet cannot be decoded (maximum packet duration)
#define TX_SWITCH_BACKOFF_END_OF_PACKET_MS 5 // wait for 2*(preamble+rampup+rampdown duration)
#define TX_SWITCH_BACKOFF_AFTER_RX_ON 70 // time the transceiver must stay in RX mode (depends on the RX->TX switch time of the other station)
#define TX_SWITCH_BACKOFF_AFTER_RX_ON_MS 70 // time the transceiver must stay in RX mode (depends on the RX->TX switch time of the other station)
/*** LAYER 1 CONFIG ***/

View file

@ -327,7 +327,7 @@ int main(int argc, char **argv)
retransmit_time = get_hires_time() + HRTIME_SEC(1) + HRTIME_SEC(1.0 * rand() / RAND_MAX);
block_tx_for(TX_SWITCH_BACKOFF_AFTER_RX_ON);
block_tx_for(TX_SWITCH_BACKOFF_AFTER_RX_ON_MS);
}
}

View file

@ -377,7 +377,7 @@ int main(void)
}
// make sure the receiver runs for a minimum amount of time
block_tx_for(TX_SWITCH_BACKOFF_AFTER_RX_ON);
block_tx_for(TX_SWITCH_BACKOFF_AFTER_RX_ON_MS);
while(get_hires_time() < next_tx_switch_time) {
// ** Receive signal **

View file

@ -252,7 +252,7 @@ int main(void)
}
// make sure the receiver runs for a minimum amount of time
block_tx_for(TX_SWITCH_BACKOFF_AFTER_RX_ON);
block_tx_for(TX_SWITCH_BACKOFF_AFTER_RX_ON_MS);
// receive response
while(get_hires_time() < next_tx_switch_time) {