From be3cdc0439be3a162d93ab3969317336e6c61d2f Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 4 Feb 2021 09:25:11 +0100 Subject: [PATCH] sensors: correct comment logic By removing the no the comment matches the implementation (which I think makes sense). --- src/modules/sensors/data_validator/DataValidatorGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sensors/data_validator/DataValidatorGroup.cpp b/src/modules/sensors/data_validator/DataValidatorGroup.cpp index 7ebf1550d6..20c1358525 100644 --- a/src/modules/sensors/data_validator/DataValidatorGroup.cpp +++ b/src/modules/sensors/data_validator/DataValidatorGroup.cpp @@ -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)) ||