From 5258f27490aaba57e78e68a1e798e3eb04aa0a5c Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 9 Jun 2020 12:50:40 +0200 Subject: [PATCH] Fix start-of_burst for PRACH Test USRP --- lib/src/phy/phch/test/prach_test_usrp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/phy/phch/test/prach_test_usrp.c b/lib/src/phy/phch/test/prach_test_usrp.c index 5d4fc39c2..f002e86bb 100644 --- a/lib/src/phy/phch/test/prach_test_usrp.c +++ b/lib/src/phy/phch/test/prach_test_usrp.c @@ -265,10 +265,12 @@ int main(int argc, char** argv) double peak_avg = 0.0; uint32_t count = 0; + // First transmission shall be flagged as start of burst + bool is_start_of_burst = true; + // Perform experiment for given a number of repetitions for (uint32_t rep = 0; rep < nof_repetitions; rep++) { - // First transmission shall be flagged as start of burst - bool is_start_of_burst = true; + is_start_of_burst |= !continous_tx; // For a the number of frames for (uint32_t nframe = 0; nframe < nof_frames; nframe++) {