pothosware / SoapySDRPlay3

Soapy SDR plugin for SDRPlay APIv3
https://github.com/pothosware/SoapySDRPlay3/wiki
MIT License
98 stars 15 forks source link

Remove comparison between input gain argument and corrent gain for IF gain in setGain() method #8

Open fventuri opened 4 years ago

fventuri commented 4 years ago

As @SDRplay noticed, in the setGain() method the input gain argument is compared against the current IF gain; this comparison is going to be false in almost every case.

The redundant comparison has been removed from the Settings.cpp code in master in commit https://github.com/SDRplay/SoapySDRPlay/commit/8f508f9ac90afb968cde86f0d41b75d35d61b598.