summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/edi/PFT.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-08-22 11:38:14 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-08-22 11:38:14 +0200
commit7a056ef2cb94fb2fa45d8ecaed9dd97e99749fde (patch)
treedb39d470c3209f5385f53ae453321a9f5f2f2b16 /src/dabOutput/edi/PFT.cpp
parent4e141ca1ebc12b8d647ed62c2930bf41166a4583 (diff)
downloaddabmux-7a056ef2cb94fb2fa45d8ecaed9dd97e99749fde.tar.gz
dabmux-7a056ef2cb94fb2fa45d8ecaed9dd97e99749fde.tar.bz2
dabmux-7a056ef2cb94fb2fa45d8ecaed9dd97e99749fde.zip
Add experimental EDI to configuration file
Diffstat (limited to 'src/dabOutput/edi/PFT.cpp')
-rw-r--r--src/dabOutput/edi/PFT.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dabOutput/edi/PFT.cpp b/src/dabOutput/edi/PFT.cpp
index ac53f5d..5eaac09 100644
--- a/src/dabOutput/edi/PFT.cpp
+++ b/src/dabOutput/edi/PFT.cpp
@@ -88,8 +88,9 @@ vector< vector<uint8_t> > PFT::ProtectAndFragment(AFPacket af_packet)
const size_t fragment_size = m_num_chunks * (m_k + ParityBytes) / max_payload_size;
const size_t num_fragments = m_num_chunks * (m_k + ParityBytes) / fragment_size;
- fprintf(stderr, " PnF fragment_size %zu, num frag %zu\n",
- fragment_size, num_fragments);
+ if (m_verbose)
+ fprintf(stderr, " PnF fragment_size %zu, num frag %zu\n",
+ fragment_size, num_fragments);
vector< vector<uint8_t> > fragments(num_fragments);
@@ -154,8 +155,9 @@ std::vector< PFTFragment > PFT::Assemble(AFPacket af_packet)
pft_fragments.push_back(packet);
- fprintf(stderr, "* PFT pseq %d, findex %d, fcount %d, plen %d\n",
- m_pseq, findex, fcount, plen & ~0x8000);
+ if (m_verbose)
+ fprintf(stderr, "* PFT pseq %d, findex %d, fcount %d, plen %d\n",
+ m_pseq, findex, fcount, plen & ~0x8000);
}
m_pseq++;