Sub: add log entry if depth sensor failure is resolved

This commit is contained in:
Peter Barker 2019-03-27 13:53:10 +11:00 committed by Jacob Walser
parent b6ee93aeef
commit e3561f7204
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ void Sub::failsafe_sensors_check()
// We need a depth sensor to do any sort of auto z control
if (sensor_health.depth) {
failsafe.sensor_health = false;
if (failsafe.sensor_health) {
AP::logger().Write_Error(LogErrorSubsystem::FAILSAFE_SENSORS, LogErrorCode::ERROR_RESOLVED);
failsafe.sensor_health = false;
}
return;
}