Skip to content
Snippets Groups Projects
Commit c24e1e4d authored by Don Gagne's avatar Don Gagne
Browse files

Fix cast

parent 0ed293bd
No related branches found
No related tags found
No related merge requests found
...@@ -168,7 +168,7 @@ int MissionController::addMissionItem(QGeoCoordinate coordinate) ...@@ -168,7 +168,7 @@ int MissionController::addMissionItem(QGeoCoordinate coordinate)
newItem->setCommand(MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF); newItem->setCommand(MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF);
} }
newItem->setDefaultsForCommand(); newItem->setDefaultsForCommand();
if (newItem->command() == MAV_CMD_NAV_WAYPOINT) { if ((MAV_CMD)newItem->command() == MAV_CMD_NAV_WAYPOINT) {
newItem->setParam7(_findLastAltitude()); newItem->setParam7(_findLastAltitude());
} }
_missionItems->append(newItem); _missionItems->append(newItem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment