From deb3cbec28e87ac97dabc41ae3d13c9af6c20ffb Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 12 Jul 2019 05:38:33 +0200 Subject: [PATCH] soapy: start rx stream without extra flags and print error if not successful --- lib/src/phy/rf/rf_soapy_imp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/rf/rf_soapy_imp.c b/lib/src/phy/rf/rf_soapy_imp.c index d172b4da1..b7eb18d44 100644 --- a/lib/src/phy/rf/rf_soapy_imp.c +++ b/lib/src/phy/rf/rf_soapy_imp.c @@ -219,8 +219,11 @@ int rf_soapy_start_rx_stream(void *h, bool now) { rf_soapy_handler_t *handler = (rf_soapy_handler_t*) h; if(handler->rx_stream_active == false){ - if(SoapySDRDevice_activateStream(handler->device, handler->rxStream, SOAPY_SDR_HAS_TIME | SOAPY_SDR_END_BURST, 0, 0) != 0) + if (SoapySDRDevice_activateStream(handler->device, handler->rxStream, 0, 0, 0) != 0) { + printf("Error starting Rx streaming.\n"); return SRSLTE_ERROR; + } + handler->rx_stream_active = true; } return SRSLTE_SUCCESS;