mirror of https://github.com/PentHertz/srsLTE.git
fix reporting of Tx gain stages in rf_soapy
reported by DreamNik
This commit is contained in:
parent
1d3e541069
commit
4ea9ed058c
|
@ -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]));
|
||||
|
|
Loading…
Reference in New Issue