Skip to content

Commit

Permalink
soapysr: clarify the "not enough channels" error
Browse files Browse the repository at this point in the history
  • Loading branch information
mutability committed Aug 7, 2023
1 parent 043f580 commit 78dc77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdr_soapy.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ bool soapyOpen(void)
if (SOAPY.channel) {
size_t supported_channels = SoapySDRDevice_getNumChannels(SOAPY.dev, SOAPY_SDR_RX);
if (SOAPY.channel >= supported_channels) {
fprintf(stderr, "soapy: device only supports %ld channels\n", supported_channels);
fprintf(stderr, "soapy: device only supports %ld channels, not %ld\n", supported_channels, SOAPY.channel + 1);
goto error;
}
}
Expand Down

0 comments on commit 78dc77f

Please sign in to comment.