From 18a615176e922c4eb8cc98acf221bf747069f97a Mon Sep 17 00:00:00 2001 From: Timo Jacobus Date: Thu, 5 Sep 2019 12:12:16 +0200 Subject: Transceiver: Fixed copying of history into and from channelizer buffer. In multi arfcn mode, osmo-trx would drop some bursts because it couldn't detect it and would emit idle burst instead. Specificaly detection of peak in correlation vector failed. Correcting copying of history in pullBuffer method fixes this issue. [Re-worked by Pau Espin Pedrol ] Fixes: 57df2362f0eca0a330aad3e18906046dfadb9c8b Change-Id: I93e43f6868cd67e69fc59d2980a03550d2505bf8 --- Transceiver52M/radioInterfaceMulti.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transceiver52M/radioInterfaceMulti.cpp b/Transceiver52M/radioInterfaceMulti.cpp index 99f6231..eec426e 100644 --- a/Transceiver52M/radioInterfaceMulti.cpp +++ b/Transceiver52M/radioInterfaceMulti.cpp @@ -288,7 +288,7 @@ int RadioInterfaceMulti::pullBuffer() complex *dst = history[lchan]->begin(); float *fsrc = &buf[2 * (cLen - hLen)]; for (i = 0; i < hLen; i++) { - *dst = complex(fdst[0], fdst[1]); + *dst = complex(fsrc[0], fsrc[1]); fsrc += 2; dst++; } -- cgit v1.2.3