summaryrefslogtreecommitdiffstats
path: root/src/output/Lime.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-03-12 15:28:07 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-03-12 15:28:07 +0100
commitf656ba53cd6ad89d583f39a982390504a1ec6a94 (patch)
tree31a4aa30ec6d2fdd7f2c940e3ed6122769018aff /src/output/Lime.cpp
parent705ae30e5f7cc2525627f338beef8c90a8678c2f (diff)
downloaddabmod-f656ba53cd6ad89d583f39a982390504a1ec6a94.tar.gz
dabmod-f656ba53cd6ad89d583f39a982390504a1ec6a94.tar.bz2
dabmod-f656ba53cd6ad89d583f39a982390504a1ec6a94.zip
Lime: do not check fifoFilledCount before sending
Diffstat (limited to 'src/output/Lime.cpp')
-rw-r--r--src/output/Lime.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/output/Lime.cpp b/src/output/Lime.cpp
index 7aa7d67..3a5f893 100644
--- a/src/output/Lime.cpp
+++ b/src/output/Lime.cpp
@@ -378,18 +378,7 @@ void Lime::transmit_frame(const struct FrameData &frame)
etiLog.level(info) << "overrun" << LimeStatus.overrun << "underun" << LimeStatus.underrun << "drop" << LimeStatus.droppedPackets;
#endif
- /* if(LimeStatus.fifoFilledCount>LimeStatus.fifoSize-2*FRAME_LENGTH*m_interpolate) // Drop if Fifo is just 2 frames before fullness
- {
- etiLog.level(info) << "Fifo overflow : drop";
- return;
- }*/
-
- // Wait if Fifo is just 2 frames before fullness
- if (LimeStatus.fifoFilledCount < FRAME_LENGTH * 2 * m_interpolate) {
- etiLog.level(info) << "Fifo underflow : duplicate for filling garbage";
- for (size_t i = 0; i < m_interpolate * 10; i++)
- LMS_SendStream(&m_tx_stream, buf, numSamples, NULL, 1000);
- }
+ m_last_fifo_filled_count.store(LimeStatus.fifoFilledCount);
/*
if(LimeStatus.fifoFilledCount>=5*FRAME_LENGTH*m_interpolate) // Start if FIFO is half full {