Make the equal value threshold configurable

This commit is contained in:
Lorenz Meier
2016-12-17 14:51:39 +01:00
committed by Lorenz Meier
parent 00dbffe11d
commit 75520641a5
4 changed files with 32 additions and 3 deletions
+12
View File
@@ -91,6 +91,18 @@ DataValidatorGroup::set_timeout(uint32_t timeout_interval_us)
_timeout_interval_us = timeout_interval_us;
}
void
DataValidatorGroup::set_equal_value_threshold(uint32_t threshold)
{
DataValidator *next = _first;
while (next != nullptr) {
next->set_equal_value_threshold(threshold);
next = next->sibling();
}
}
void
DataValidatorGroup::put(unsigned index, uint64_t timestamp, float val[3], uint64_t error_count, int priority)
{