address review comments

This commit is contained in:
mahima-yoga
2025-05-16 11:12:14 +02:00
committed by Matthias Grob
parent d44991f33a
commit fa168c4d4f
2 changed files with 5 additions and 7 deletions
@@ -240,7 +240,7 @@ void BatteryChecks::checkAndReport(const Context &context, Report &reporter)
log_level, "Critical battery");
if (reporter.mavlink_log_pub()) {
mavlink_log_warning(reporter.mavlink_log_pub(), "Critical battery\t");
mavlink_log_critical(reporter.mavlink_log_pub(), "Critical battery\t");
}
break;
+4 -6
View File
@@ -238,8 +238,6 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
{events::Log::Critical, events::LogInternal::Warning},
"Failsafe activated: Autopilot disengaged, switching to {2}", mavlink_mode, failsafe_action);
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
} else {
/* EVENT
* @type append_health_and_arming_messages
@@ -248,8 +246,6 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
events::ID("commander_failsafe_enter_generic"),
{events::Log::Critical, events::LogInternal::Warning},
"Failsafe activated: switching to {2}", mavlink_mode, failsafe_action);
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
}
} else {
@@ -291,13 +287,15 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
events::ID("commander_failsafe_enter"),
{events::Log::Critical, events::LogInternal::Warning},
"{3}: switching to {2}", mavlink_mode, failsafe_action, failsafe_cause);
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
}
}
if (action != Action::Warn) {
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
};
}
#endif /* EMSCRIPTEN_BUILD */
}