Plane: be consistent about strings in fence auto-enable/disable

This commit is contained in:
Peter Barker 2020-12-07 13:40:14 +11:00 committed by Andrew Tridgell
parent f4cbc50ba4
commit 719ca3f95f

View File

@ -517,15 +517,15 @@ void Plane::disable_fence_for_landing(void)
{
if (g.fence_autoenable == FenceAutoEnable::Auto) {
if (!geofence_set_enabled(false)) {
gcs().send_text(MAV_SEVERITY_NOTICE, "Disable fence failed (autodisable)");
gcs().send_text(MAV_SEVERITY_NOTICE, "Disable fence failed (auto-disable)");
} else {
gcs().send_text(MAV_SEVERITY_NOTICE, "Fence disabled (autodisable)");
gcs().send_text(MAV_SEVERITY_NOTICE, "Fence disabled (auto-disable)");
}
} else if (g.fence_autoenable == FenceAutoEnable::AutoDisableFloorOnly) {
if (!geofence_set_floor_enabled(false)) {
gcs().send_text(MAV_SEVERITY_NOTICE, "Disable fence floor failed (autodisable)");
gcs().send_text(MAV_SEVERITY_NOTICE, "Disable fence floor failed (auto-disable)");
} else {
gcs().send_text(MAV_SEVERITY_NOTICE, "Fence floor disabled (auto disable)");
gcs().send_text(MAV_SEVERITY_NOTICE, "Fence floor disabled (auto-disable)");
}
}
}