From 7e9c2bef8c5703723f1011522ea92a3893dc484c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 26 Jun 2014 14:05:09 +0200 Subject: [PATCH] Fix warning in waypoint class --- src/Waypoint.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Waypoint.cc b/src/Waypoint.cc index 33e0bf62a..4a96042c9 100644 --- a/src/Waypoint.cc +++ b/src/Waypoint.cc @@ -194,11 +194,9 @@ void Waypoint::setAction(MAV_CMD action) // Flick defaults according to WP type - switch (this->action) { - case MAV_CMD_NAV_TAKEOFF: + if (this->action == MAV_CMD_NAV_TAKEOFF) { // We default to 15 degrees minimum takeoff pitch this->param1 = 15.0; - break; } emit changed(this); -- 2.22.0