From 177eb8d875a5513731e8c9b3019ca44d311e55c3 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 26 Jun 2015 14:58:48 +0200 Subject: Add TII configuration to ini file --- src/TII.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/TII.cpp') diff --git a/src/TII.cpp b/src/TII.cpp index bafa343..5c85302 100644 --- a/src/TII.cpp +++ b/src/TII.cpp @@ -196,11 +196,9 @@ int TII::process(Buffer* const dataIn, Buffer* dataOut) } void TII::enable_carrier(int k) { - fprintf(stderr, "k = %d\n", k); - int ix = m_carriers/2 + k; - if (ix < 0 or ix > (ssize_t)m_dataIn.size()) { + if (ix < 0 or ix+1 >= (ssize_t)m_dataIn.size()) { throw std::runtime_error( "TII::enable_carrier invalid k!"); } -- cgit v1.2.3