mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
batteryCheck: change log level to 'warning' for low and critical battery.
This commit is contained in:
parent
0b3b5d9450
commit
d44991f33a
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user