Skip to content

Commit 1f43690

Browse files
committed
Fixed error when starting with AGC
1 parent e23683d commit 1f43690

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PlutoSDR/PlutoSDRDevice.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ public void configureReceiver()
329329
this.SampleRate = _sampleRate;
330330

331331
this.GainControlMode = _gainControlMode;
332-
this.ManualGain = _manualGain;
332+
if (this.GainControlMode == "manual")
333+
{
334+
this.ManualGain = _manualGain;
335+
}
333336
}
334337
public unsafe void Start()
335338
{

0 commit comments

Comments
 (0)