Signed-off-by: hayati ayguen <h_ayguen@web.de>
development
hayati ayguen 2020-08-21 05:26:33 -07:00
parent 76ee57b74b
commit 8098c2c4f6
2 changed files with 2 additions and 2 deletions

View File

@ -3336,7 +3336,7 @@ static int softagc(rtlsdr_dev_t *dev, unsigned char *buf, int len)
break;
case SOFTAGC_AUTO_ATTEN:
case SOFTAGC_AUTO:
agc->agcState == SOFTSTATE_ON;
agc->agcState = SOFTSTATE_ON;
return 1;
}
}

View File

@ -1587,7 +1587,7 @@ static void *controller_thread_fn(void *arg)
/* 1- set center frequency */
if (c->prevFreq != dongle.freq) {
rtlsdr_set_center_freq(dongle.dev, dongle.freq);
c->prevFreq != dongle.freq;
c->prevFreq = dongle.freq;
}
/* 2- Set the tuner gain */
if (c->prevGain != c->gain) {