Start RX with delay

master
Ismael Gomez 7 years ago
parent df1a0c68e2
commit fea5c3462c

@ -147,7 +147,7 @@ bool radio::rx_at(void* buffer, uint32_t nof_samples, srslte_timestamp_t rx_time
bool radio::rx_now(void* buffer[SRSLTE_MAX_PORTS], uint32_t nof_samples, srslte_timestamp_t* rxd_time) bool radio::rx_now(void* buffer[SRSLTE_MAX_PORTS], uint32_t nof_samples, srslte_timestamp_t* rxd_time)
{ {
if (!radio_is_streaming) { if (!radio_is_streaming) {
srslte_rf_start_rx_stream(&rf_device, true); srslte_rf_start_rx_stream(&rf_device, false);
radio_is_streaming = true; radio_is_streaming = true;
} }
if (srslte_rf_recv_with_time_multi(&rf_device, buffer, nof_samples, true, if (srslte_rf_recv_with_time_multi(&rf_device, buffer, nof_samples, true,

@ -48,7 +48,7 @@ bool radio_multi::rx_now(cf_t *buffer[SRSLTE_MAX_PORTS], uint32_t nof_samples, s
ptr[i] = buffer[i]; ptr[i] = buffer[i];
} }
if (!radio_is_streaming) { if (!radio_is_streaming) {
srslte_rf_start_rx_stream(&rf_device, true); srslte_rf_start_rx_stream(&rf_device, false);
radio_is_streaming = true; radio_is_streaming = true;
} }
if (srslte_rf_recv_with_time_multi(&rf_device, ptr, nof_samples, true, if (srslte_rf_recv_with_time_multi(&rf_device, ptr, nof_samples, true,

Loading…
Cancel
Save