diff options
author | Timo Jacobus <timojacobus5@gmail.com> | 2019-09-05 12:12:16 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-09-20 19:17:22 +0200 |
commit | 18a615176e922c4eb8cc98acf221bf747069f97a (patch) | |
tree | 2b5f30c56dec9dba1c91ab250dfe77b5b654b7ac | |
parent | radioInterface{Multi,Resamp}: Fix successful writeSamples() masking underrun from readSamples() (diff) | |
download | OsmoTRX-18a615176e922c4eb8cc98acf221bf747069f97a.tar.xz OsmoTRX-18a615176e922c4eb8cc98acf221bf747069f97a.zip |
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 <pespin@sysmocom.de>]
Fixes: 57df2362f0eca0a330aad3e18906046dfadb9c8b
Change-Id: I93e43f6868cd67e69fc59d2980a03550d2505bf8
-rw-r--r-- | Transceiver52M/radioInterfaceMulti.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |