Add _MS suffix to TX_SWITCH_BACKOFF_AFTER_RX_ON constant
This commit is contained in:
parent
dcd0b1a4a1
commit
f3f0733a3f
|
@ -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_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_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 ***/
|
/*** LAYER 1 CONFIG ***/
|
||||||
|
|
||||||
|
|
|
@ -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);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -377,7 +377,7 @@ int main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the receiver runs for a minimum amount of time
|
// 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) {
|
while(get_hires_time() < next_tx_switch_time) {
|
||||||
// ** Receive signal **
|
// ** Receive signal **
|
||||||
|
|
|
@ -252,7 +252,7 @@ int main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the receiver runs for a minimum amount of time
|
// 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
|
// receive response
|
||||||
while(get_hires_time() < next_tx_switch_time) {
|
while(get_hires_time() < next_tx_switch_time) {
|
||||||
|
|
Loading…
Reference in a new issue