mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
batteryCheck: change log level to 'warning' for low and critical battery.
This commit is contained in:
committed by
Matthias Grob
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;
|
||||
|
||||
Reference in New Issue
Block a user