Plane: be consistent about strings in fence auto-enable/disable
This commit is contained in:
parent
f4cbc50ba4
commit
719ca3f95f
@ -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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user