BUGfix: only add filters for enabled input channels
This commit is contained in:
parent
6eaf5db691
commit
48de9cc3cb
@ -325,6 +325,7 @@ void StreamMgr::startStream(const DaqConfiguration &config) {
|
|||||||
_inputFilters.push_back(nullptr);
|
_inputFilters.push_back(nullptr);
|
||||||
}
|
}
|
||||||
for (auto &ch : daq->inchannel_config) {
|
for (auto &ch : daq->inchannel_config) {
|
||||||
|
if (ch.enabled) {
|
||||||
if (ch.digitalHighPassCutOn < 0) {
|
if (ch.digitalHighPassCutOn < 0) {
|
||||||
_inputFilters.push_back(nullptr);
|
_inputFilters.push_back(nullptr);
|
||||||
} else if (ch.digitalHighPassCutOn == 0) {
|
} else if (ch.digitalHighPassCutOn == 0) {
|
||||||
@ -334,6 +335,7 @@ void StreamMgr::startStream(const DaqConfiguration &config) {
|
|||||||
_inputFilters.emplace_back(std::make_unique<SeriesBiquad>(
|
_inputFilters.emplace_back(std::make_unique<SeriesBiquad>(
|
||||||
SeriesBiquad::firstOrderHighPass(fs, ch.digitalHighPassCutOn)));
|
SeriesBiquad::firstOrderHighPass(fs, ch.digitalHighPassCutOn)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} // End of input filter creation
|
} // End of input filter creation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user