|
|
|
@ -338,3 +338,22 @@ DataValidatorGroup::failover_state()
@@ -338,3 +338,22 @@ DataValidatorGroup::failover_state()
|
|
|
|
|
|
|
|
|
|
return DataValidator::ERROR_FLAG_NO_ERROR; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
uint32_t |
|
|
|
|
DataValidatorGroup::get_sensor_state(unsigned index) |
|
|
|
|
{ |
|
|
|
|
DataValidator *next = _first; |
|
|
|
|
unsigned i = 0; |
|
|
|
|
|
|
|
|
|
while (next != nullptr) { |
|
|
|
|
if (i == index) { |
|
|
|
|
return next->state(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
next = next->sibling(); |
|
|
|
|
i++; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// sensor index not found
|
|
|
|
|
return UINT32_MAX; |
|
|
|
|
} |
|
|
|
|