Open frspin opened 7 years ago
I have made some changes to support 1.97. I can make them available, but I need to fork this repo so I can contribute the changes back as a pull request. AGC is working and I provided some an additional to allow overriding the default mir_sdr_AGC_100HZ update rate.
Pull request submitted.
New API 1.97 define
mir_sdr_AgcControl(mir_sdr_AgcControlT enable, int setPoint_dBfs, int knee_dBfs, unsigned int decay_ms, unsigned int hang_ms, int syncUpdate, int lnaEnable)
Your code define a
bool sdrplay_source_c::set_gain_mode(bool automatic, size_t chan) {
and use
mir_sdr_AgcControl(automatic, _dev->agcSetPoint, 0, 0, 0, 0, 0);
This don't compile with new API and a new definition of "enable" parameter is needed
Regards Franco Spinelli IW2DHW