Skip to content

Commit

Permalink
soapysdr: actually use the requested channel when streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mutability committed Aug 7, 2023
1 parent 78dc77f commit d37dfac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdr_soapy.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ bool soapyOpen(void)
SoapySDRDevice_getFrequencyCorrection(SOAPY.dev, SOAPY_SDR_RX, SOAPY.channel));
}

size_t channels[1] = { 0 };
SoapySDRKwargs stream_args = { 0 };
size_t channels[1] = { SOAPY.channel };
SoapySDRKwargs stream_args = { 0, NULL, NULL };
if ((SOAPY.stream = SoapySDRDevice_setupStream(SOAPY.dev, SOAPY_SDR_RX, SOAPY_SDR_CS16, channels, 1, &stream_args)) == NULL) {
fprintf(stderr, "soapy: setupStream failed: %s\n", SoapySDRDevice_lastError());
goto error;
Expand Down

0 comments on commit d37dfac

Please sign in to comment.