From fd84a6b493b021a8a16485df8f3dd442898879ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 8 May 2015 16:27:16 +1000 Subject: [PATCH] Plane: fixed missing break in fence floor logic --- ArduPlane/GCS_Mavlink.pde | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index aaffaf6c33..17b03b31c1 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -1214,21 +1214,22 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) if (! geofence_set_enabled(false, GCS_TOGGLED)) { result = MAV_RESULT_FAILED; } - break; + break; case 1: if (! geofence_set_enabled(true, GCS_TOGGLED)) { result = MAV_RESULT_FAILED; } - break; + break; case 2: //disable fence floor only if (! geofence_set_floor_enabled(false)) { result = MAV_RESULT_FAILED; } else { gcs_send_text_P(SEVERITY_HIGH,PSTR("Fence floor disabled.")); } + break; default: result = MAV_RESULT_FAILED; - break; + break; } break;