set best sensor to -1 after last sensor fails (#23425)

This commit is contained in:
Marco Hauswirth
2024-07-24 11:24:07 +02:00
committed by GitHub
parent 36d89df0a7
commit 39abd87949
@@ -230,6 +230,10 @@ float *DataValidatorGroup::get_best(uint64_t timestamp, int *index)
if (_first_failover_time == 0) {
_first_failover_time = timestamp;
}
if (max_confidence < FLT_EPSILON) {
max_index = -1;
}
}
}