Skip to content

Commit

Permalink
Fix test_xtrx_soapy build issue
Browse files Browse the repository at this point in the history
The Soapy setupstream function now passes back rxStream as the
return value rather than taking it as a parameter.  This PR
corrects the code to build correctly and addresses issue myriadrf#23.
  • Loading branch information
ghostop14 committed Mar 29, 2020
1 parent 98458ce commit 758fe50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soapy/test_xtrx_soapy.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ int main(void)

//setup a stream (complex floats)
SoapySDRStream *rxStream;
if (SoapySDRDevice_setupStream(sdr, &rxStream, SOAPY_SDR_RX, SOAPY_SDR_CF32, NULL, 0, NULL) != 0)
{
rxStream = SoapySDRDevice_setupStream(sdr, SOAPY_SDR_RX, SOAPY_SDR_CF32, NULL, 0, NULL);
if ( rxStream == 0) {
printf("setupStream fail: %s\n", SoapySDRDevice_lastError());
}
SoapySDRDevice_activateStream(sdr, rxStream, 0, 0, 0); //start streaming
Expand Down

0 comments on commit 758fe50

Please sign in to comment.