batteryCheck: change log level to 'warning' for low and critical battery.

This commit is contained in:
mahima-yoga 2025-05-15 14:40:25 +02:00 committed by Matthias Grob
parent 0b3b5d9450
commit d44991f33a

View File

@ -222,7 +222,7 @@ void BatteryChecks::checkAndReport(const Context &context, Report &reporter)
log_level, "Low battery");
if (reporter.mavlink_log_pub()) {
mavlink_log_emergency(reporter.mavlink_log_pub(), "Low battery\t");
mavlink_log_warning(reporter.mavlink_log_pub(), "Low battery\t");
}
break;
@ -240,7 +240,7 @@ void BatteryChecks::checkAndReport(const Context &context, Report &reporter)
log_level, "Critical battery");
if (reporter.mavlink_log_pub()) {
mavlink_log_emergency(reporter.mavlink_log_pub(), "Critical battery\t");
mavlink_log_warning(reporter.mavlink_log_pub(), "Critical battery\t");
}
break;