diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-07-01 16:40:44 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-07-02 15:05:10 +0200 |
commit | 25ae190dc69b6229a2448ec756e241f0a095d957 (patch) | |
tree | 8b7470f19aa3160e295de104135afad821cfbba7 /Transceiver52M | |
parent | 607a414967dc6ca4258bf6a391210c437943fad4 (diff) |
Transceiver: Move soft bits normalization to pullRadioVector()
That's where all the filling logic happens, while in driveReceiveFIFO we
mostly want to take the burst, generate a message and sent it over the
socket.
Related: OS#4006
Change-Id: Ibfb48877af4ff5ef0f56390901669c8353beaf48
Diffstat (limited to 'Transceiver52M')
-rw-r--r-- | Transceiver52M/Transceiver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index 5a6b652..a6a32f0 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -649,6 +649,9 @@ bool Transceiver::pullRadioVector(size_t chan, struct trx_ul_burst_ind *bi) else /* size() here is actually gSlotLen + 8, due to guard periods */ bi->nbits = gSlotLen; + // Convert -1..+1 soft bits to 0..1 soft bits + vectorSlicer(bi->rxBurst); + delete radio_burst; return true; } @@ -928,9 +931,6 @@ void Transceiver::driveReceiveFIFO(size_t chan) if (!pullRadioVector(chan, &bi)) return; - // Convert -1..+1 soft bits to 0..1 soft bits - vectorSlicer(bi.rxBurst); - logRxBurst(chan, &bi); TOAint = (int) (bi.toa * 256.0 + 0.5); // round to closest integer |