fix reporting of Tx gain stages in rf_soapy

reported by DreamNik
This commit is contained in:
Andre Puschmann 2019-09-11 21:44:03 +02:00
parent 1d3e541069
commit 4ea9ed058c
1 changed files with 1 additions and 0 deletions

View File

@ -486,6 +486,7 @@ int rf_soapy_open_multi(char* args, void** h, uint32_t num_requested_channels)
}
has_agc = SoapySDRDevice_hasGainMode(handler->device, SOAPY_SDR_TX, 0);
list = SoapySDRDevice_listGains(handler->device, SOAPY_SDR_TX, 0, &list_length);
printf("State of gain elements for Tx channel 0 (AGC %s):\n", has_agc ? "supported":"not supported");
for(int i = 0; i < list_length; i++) {
printf(" - %s: %.2f dB\n", list[i], SoapySDRDevice_getGainElement(handler->device, SOAPY_SDR_TX, 0, list[i]));