aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioInterface.cpp
diff options
context:
space:
mode:
authorTom Tsou <tom.tsou@ettus.com>2016-07-12 16:07:48 -0700
committerTom Tsou <tom.tsou@ettus.com>2016-07-12 16:11:13 -0700
commitb577ef014f22e1b78c10ca3af39626a5b26b2656 (patch)
treef3b3db099f2b5f05094e6a9699750b85137e3e0a /Transceiver52M/radioInterface.cpp
parentc37594f3b96a22d440d1ec8f52e0d968fca37185 (diff)
radioInterface: Fix multi-channel buffer index bug
Discrete RF multi-channel was using hard coded buffer index on the channel iteration for transmit sample conversion. End result was segmentation fault on dual RF channel devices with both channels active (Ettus B210 and UmTRX). Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
Diffstat (limited to 'Transceiver52M/radioInterface.cpp')
-rw-r--r--Transceiver52M/radioInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp
index 052b439..7a84430 100644
--- a/Transceiver52M/radioInterface.cpp
+++ b/Transceiver52M/radioInterface.cpp
@@ -344,7 +344,7 @@ bool RadioInterface::pushBuffer()
for (size_t i = 0; i < mChans; i++) {
convert_float_short(convertSendBuffer[i],
- (float *) sendBuffer[0]->getReadSegment(),
+ (float *) sendBuffer[i]->getReadSegment(),
powerScaling[i],
segmentLen * 2);
}