Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Tomohito Ando <[email protected]>
  • Loading branch information
TomohitoAndo committed Nov 22, 2024
1 parent 2aca1c9 commit 86d2533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/diagnostic_graph_utils/src/node/recovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ void RecoveryNode::on_mrm_state(const MrmState::ConstSharedPtr msg)
if (msg->state != MrmState::NORMAL && fatal_error_) {
mrm_by_fatal_error_ = true;
}
// reset flag if recoverd (transition from mrm to normal)
// reset flag if recovered (transition from mrm to normal)
if (mrm_occur_ && msg->state == MrmState::NORMAL) {
mrm_by_fatal_error_ = false;
}
mrm_occur_ = msg->state != MrmState::NORMAL;
// 1. Not emergency
// 2. Non-recovoerable MRM have not happened
// 2. Non-recoverable MRM have not happened
// 3. on MRM
// 4. on autonomous driving
if (autonomous_available_ && !mrm_by_fatal_error_ && mrm_occur_ && auto_driving_) {
Expand Down

0 comments on commit 86d2533

Please sign in to comment.