From: dttsp Date: Fri, 3 Jun 2005 17:07:47 +0000 (+0000) Subject: Further correction to digitalagc X-Git-Url: https://git.rkrishnan.org/pf/content/%22file:/frontends/install.html?a=commitdiff_plain;h=d9dd6c5225923291c4a9371e43cca7e10440f424;p=dttsp.git Further correction to digitalagc --- diff --git a/jDttSP/digitalagc.c b/jDttSP/digitalagc.c index c9fc7e5..4970919 100644 --- a/jDttSP/digitalagc.c +++ b/jDttSP/digitalagc.c @@ -85,7 +85,7 @@ DigitalAgc(DIGITALAGC a, int tick) { } a->sndx = (a->sndx + CXBsize(a->buff)) % a->mask; - a->indx = ((a->indx + 1) % hang); + a->indx = (a->indx + 1) % hang; } } diff --git a/jDttSP/main.c b/jDttSP/main.c index b288112..ac64eb2 100644 --- a/jDttSP/main.c +++ b/jDttSP/main.c @@ -246,7 +246,18 @@ run_swch(void) { float w = (float) i / m; top.hold.buf.l[i] *= w, top.hold.buf.r[i] *= w; } + uni.mode.trx = top.swch.trx.next; + switch (uni.mode.trx) { + int i; + case TX: + tx.agc.gen->over = tx.tick + 3; + break; + case RX: + for(i = 0; i < uni.multirx.nrx; i++) + rx[i].agc.gen->over = rx[i].tick + 3; + break; + } top.state = top.swch.run.last; top.swch.bfct.want = top.swch.bfct.have = 0;