mirror of https://github.com/PentHertz/srsLTE.git
soapy: start rx stream without extra flags and print error if not successful
This commit is contained in:
parent
80655db4a4
commit
deb3cbec28
|
@ -219,8 +219,11 @@ int rf_soapy_start_rx_stream(void *h, bool now)
|
||||||
{
|
{
|
||||||
rf_soapy_handler_t *handler = (rf_soapy_handler_t*) h;
|
rf_soapy_handler_t *handler = (rf_soapy_handler_t*) h;
|
||||||
if(handler->rx_stream_active == false){
|
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;
|
return SRSLTE_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
handler->rx_stream_active = true;
|
handler->rx_stream_active = true;
|
||||||
}
|
}
|
||||||
return SRSLTE_SUCCESS;
|
return SRSLTE_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue