aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Transceiver52M/radioInterface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp
index e32848e..0d33f22 100644
--- a/Transceiver52M/radioInterface.cpp
+++ b/Transceiver52M/radioInterface.cpp
@@ -348,6 +348,7 @@ int RadioInterface::pullBuffer()
/* Send timestamped chunk to the device with arbitrary size */
bool RadioInterface::pushBuffer()
{
+ bool local_underrun;
size_t numSent, segmentLen = sendBuffer[0]->getSegmentLen();
if (sendBuffer[0]->getAvailSegments() < 1)
@@ -363,8 +364,9 @@ bool RadioInterface::pushBuffer()
/* Send the all samples in the send buffer */
numSent = mRadio->writeSamples(convertSendBuffer,
segmentLen,
- &underrun,
+ &local_underrun,
writeTimestamp);
+ underrun |= local_underrun;
writeTimestamp += numSent;
return true;