mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Plane: fixed missing break in fence floor logic
This commit is contained in:
parent
ee14678d2a
commit
fd84a6b493
@ -1214,21 +1214,22 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
if (! geofence_set_enabled(false, GCS_TOGGLED)) {
|
if (! geofence_set_enabled(false, GCS_TOGGLED)) {
|
||||||
result = MAV_RESULT_FAILED;
|
result = MAV_RESULT_FAILED;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (! geofence_set_enabled(true, GCS_TOGGLED)) {
|
if (! geofence_set_enabled(true, GCS_TOGGLED)) {
|
||||||
result = MAV_RESULT_FAILED;
|
result = MAV_RESULT_FAILED;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //disable fence floor only
|
case 2: //disable fence floor only
|
||||||
if (! geofence_set_floor_enabled(false)) {
|
if (! geofence_set_floor_enabled(false)) {
|
||||||
result = MAV_RESULT_FAILED;
|
result = MAV_RESULT_FAILED;
|
||||||
} else {
|
} else {
|
||||||
gcs_send_text_P(SEVERITY_HIGH,PSTR("Fence floor disabled."));
|
gcs_send_text_P(SEVERITY_HIGH,PSTR("Fence floor disabled."));
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
result = MAV_RESULT_FAILED;
|
result = MAV_RESULT_FAILED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user