Skip to content

Commit

Permalink
Fixup RTL-SDR AGC. Fixes SatDump#75
Browse files Browse the repository at this point in the history
  • Loading branch information
Aang23 committed Dec 14, 2021
1 parent 8c00d3a commit 4688d1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libsdr/sdr/rtltcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void SDRRtlTcp::runThread()
SDRRtlTcp::SDRRtlTcp(std::map<std::string, std::string> parameters, uint64_t id) : SDRDevice(parameters, id)
{
READ_PARAMETER_IF_EXISTS_FLOAT(gain, "gain");
READ_PARAMETER_IF_EXISTS_FLOAT(agc, "agc");

if (parameters.count("ip") == 0)
{
Expand All @@ -44,6 +45,7 @@ SDRRtlTcp::SDRRtlTcp(std::map<std::string, std::string> parameters, uint64_t id)
std::map<std::string, std::string> SDRRtlTcp::getParameters()
{
d_parameters["gain"] = std::to_string(gain);
d_parameters["agc"] = std::to_string((int)agc);

return d_parameters;
}
Expand Down

0 comments on commit 4688d1a

Please sign in to comment.