Skip to content

Commit

Permalink
Plane: avoid fence breach clearing spam
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Feb 13, 2024
1 parent 5e25f51 commit c667ef3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ArduPlane/fence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ void Plane::fence_check()
}

LOGGER_WRITE_ERROR(LogErrorSubsystem::FAILSAFE_FENCE, LogErrorCode(new_breaches));
} else if (orig_breaches) {
} else if (orig_breaches && fence.get_breaches() == 0) {
GCS_SEND_TEXT(MAV_SEVERITY_NOTICE, "Fence breach cleared");
// record clearing of breach
LOGGER_WRITE_ERROR(LogErrorSubsystem::FAILSAFE_FENCE, LogErrorCode::ERROR_RESOLVED);
}
Expand Down

0 comments on commit c667ef3

Please sign in to comment.