soapy: start rx stream without extra flags and print error if not successful

This commit is contained in:
Andre Puschmann 2019-07-12 05:38:33 +02:00
parent 80655db4a4
commit deb3cbec28
1 changed files with 4 additions and 1 deletions

View File

@ -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;