Skip to content

Commit

Permalink
report safe fault as latent fault
Browse files Browse the repository at this point in the history
  • Loading branch information
saka1-s committed Dec 22, 2024
1 parent 76fd57d commit bfacb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/hazard_status_converter/src/converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void Converter::on_update(DiagGraph::ConstSharedPtr graph)
const auto get_hazards_vector = [](HazardStatus & status, HazardLevel level) {
if (level == HazardStatus::SINGLE_POINT_FAULT) return &status.diag_single_point_fault;
if (level == HazardStatus::LATENT_FAULT) return &status.diag_latent_fault;
if (level == HazardStatus::SAFE_FAULT) return &status.diag_safe_fault;
if (level == HazardStatus::SAFE_FAULT) return &status.diag_latent_fault;
if (level == HazardStatus::NO_FAULT) return &status.diag_no_fault;
return static_cast<std::vector<DiagnosticStatus> *>(nullptr);
};
Expand Down

0 comments on commit bfacb16

Please sign in to comment.