increasing timeout on trx_read for x300/n300 in usrp_lib.cpp

removing unncesessary sleeps and mallocs, improving error messages in nr-ue.c
This commit is contained in:
Florian Kaltenberger
2019-03-21 15:40:36 +01:00
parent c4188d8013
commit 7ca8fc9de1
2 changed files with 16 additions and 36 deletions
+2 -2
View File
@@ -597,10 +597,10 @@ static int trx_usrp_read(openair0_device *device, openair0_timestamp *ptimestamp
for (int i=0; i<cc; i++) buff_ptrs.push_back(buff[i]);
samples_received = s->rx_stream->recv(buff_ptrs, nsamps, s->rx_md);
samples_received = s->rx_stream->recv(buff_ptrs, nsamps, s->rx_md,1.0);
} else {
// receive a single channel (e.g. from connector RF A)
samples_received = s->rx_stream->recv(buff[0], nsamps, s->rx_md);
samples_received = s->rx_stream->recv(buff[0], nsamps, s->rx_md,1.0);
}
}