Skip to content

Commit

Permalink
Fixed error when starting with AGC
Browse files Browse the repository at this point in the history
  • Loading branch information
Manawyrm committed Apr 7, 2018
1 parent e23683d commit 1f43690
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PlutoSDR/PlutoSDRDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ public void configureReceiver()
this.SampleRate = _sampleRate;

this.GainControlMode = _gainControlMode;
this.ManualGain = _manualGain;
if (this.GainControlMode == "manual")
{
this.ManualGain = _manualGain;
}
}
public unsafe void Start()
{
Expand Down

0 comments on commit 1f43690

Please sign in to comment.