File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,12 @@ void CRTL_TCP_Client::receiveData(void)
282
282
dongleInfo.tuner_type << " " << TunerType << std::endl;
283
283
std::clog << " RTL_TCP_CLIENT: Tuner gain count: " <<
284
284
dongleInfo.tuner_gain_count << std::endl;
285
+
286
+ // Always use manual gain, the AGC is implemented in software
287
+ setGainMode (1 );
288
+ setGain (currentGainCount);
289
+ sendRate (INPUT_RATE);
290
+ sendVFO (frequency);
285
291
}
286
292
else {
287
293
std::clog << " RTL_TCP_CLIENT: Didn't find the \" RTL0\" magic key." <<
@@ -444,12 +450,6 @@ void CRTL_TCP_Client::receiveAndReconnect()
444
450
std::clog << " RTL_TCP_CLIENT: Successful connected to server " <<
445
451
std::endl;
446
452
447
- // Always use manual gain, the AGC is implemented in software
448
- setGainMode (1 );
449
- setGain (currentGainCount);
450
- sendRate (INPUT_RATE);
451
- sendVFO (frequency);
452
-
453
453
if (!agcRunning) {
454
454
agcRunning = true ;
455
455
agcThread = std::thread (&CRTL_TCP_Client::agcTimer, this );
Original file line number Diff line number Diff line change @@ -522,6 +522,7 @@ int main(int argc, char **argv)
522
522
in->setAgc (true );
523
523
}
524
524
else {
525
+ in->setAgc (false );
525
526
in->setGain (options.gain );
526
527
}
527
528
You can’t perform that action at this time.
0 commit comments