Skip to content

Commit

Permalink
RTLSDRTCP: fixed initial gain value multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Noack committed Mar 12, 2017
1 parent 54e6d0d commit 5b68f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/urh/dev/native/RTLSDRTCP.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def receive_sync(data_connection, ctrl_connection, device_number: int, center_fr
sdr.device_number = device_number
sdr.set_parameter("centerFreq", int(center_freq), ctrl_connection)
sdr.set_parameter("sampleRate", int(sample_rate), ctrl_connection)
sdr.set_parameter("bandwidth", int(sample_rate), ctrl_connection) # set bandwidth equal to sample_rate
sdr.set_parameter("tunerGain", 10 * int(gain), ctrl_connection)
sdr.set_parameter("bandwidth", int(sample_rate), ctrl_connection) # set bandwidth equal to sample_rate
sdr.set_parameter("tunerGain", 10 * int(gain), ctrl_connection) # gain is multiplied by 10 because of rtlsdr-API
sdr.set_parameter("freqCorrection", int(freq_correction), ctrl_connection)
sdr.set_parameter("directSampling", int(direct_sampling_mode), ctrl_connection)
exit_requested = False
Expand Down

0 comments on commit 5b68f79

Please sign in to comment.