summaryrefslogtreecommitdiffstats
path: root/src/TII.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-26 14:58:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-26 14:58:48 +0200
commit177eb8d875a5513731e8c9b3019ca44d311e55c3 (patch)
treec88c58f952c4ccb8bc5f2d4eafafc18eb12eb5f3 /src/TII.cpp
parent79274de1247590c7f350d8e6aa1b67f9cc72ab08 (diff)
downloaddabmod-177eb8d875a5513731e8c9b3019ca44d311e55c3.tar.gz
dabmod-177eb8d875a5513731e8c9b3019ca44d311e55c3.tar.bz2
dabmod-177eb8d875a5513731e8c9b3019ca44d311e55c3.zip
Add TII configuration to ini file
Diffstat (limited to 'src/TII.cpp')
-rw-r--r--src/TII.cpp4
1 files changed, 1 insertions, 3 deletions
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!");
}