hb9fxq / gr-osmosdr-fork-sdrplay

GNU General Public License v3.0
2 stars 4 forks source link

New API 1.97 #6

Open frspin opened 7 years ago

frspin commented 7 years ago

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

N5FPP commented 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.

N5FPP commented 7 years ago

Pull request submitted.