From d9dd6c5225923291c4a9371e43cca7e10440f424 Mon Sep 17 00:00:00 2001 From: dttsp Date: Fri, 3 Jun 2005 17:07:47 +0000 Subject: [PATCH] Further correction to digitalagc --- jDttSP/digitalagc.c | 2 +- jDttSP/main.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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; -- 2.45.2