Commit c24e1e4d authored by Don Gagne's avatar Don Gagne

Fix cast

parent 0ed293bd
......@@ -168,7 +168,7 @@ int MissionController::addMissionItem(QGeoCoordinate coordinate)
newItem->setCommand(MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF);
}
newItem->setDefaultsForCommand();
if (newItem->command() == MAV_CMD_NAV_WAYPOINT) {
if ((MAV_CMD)newItem->command() == MAV_CMD_NAV_WAYPOINT) {
newItem->setParam7(_findLastAltitude());
}
_missionItems->append(newItem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment