Browse Source

sensors: correct comment logic

By removing the no the comment matches the implementation (which I think
makes sense).
release/1.12
Julian Oes 4 years ago committed by Mathieu Bresciani
parent
commit
be3cdc0439
  1. 2
      src/modules/sensors/data_validator/DataValidatorGroup.cpp

2
src/modules/sensors/data_validator/DataValidatorGroup.cpp

@ -164,7 +164,7 @@ float *DataValidatorGroup::get_best(uint64_t timestamp, int *index) @@ -164,7 +164,7 @@ float *DataValidatorGroup::get_best(uint64_t timestamp, int *index)
/*
* Switch if:
* 1) the confidence is higher and priority is equal or higher
* 2) the confidence is no less than 1% different and the priority is higher
* 2) the confidence is less than 1% different and the priority is higher
*/
if ((((max_confidence < MIN_REGULAR_CONFIDENCE) && (confidence >= MIN_REGULAR_CONFIDENCE)) ||
(confidence > max_confidence && (next->priority() >= max_priority)) ||

Loading…
Cancel
Save