sensors: correct comment logic

By removing the no the comment matches the implementation (which I think
makes sense).
This commit is contained in:
Julian Oes
2021-02-04 09:25:11 +01:00
committed by Mathieu Bresciani
parent 3ab4213314
commit be3cdc0439
@@ -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)) ||