Commit c1b7e860 authored by Don Gagne's avatar Don Gagne

Fix de-dup

parent c8416a22
...@@ -1076,12 +1076,13 @@ void MissionManager::generateResumeMission(int resumeIndex) ...@@ -1076,12 +1076,13 @@ void MissionManager::generateResumeMission(int resumeIndex)
foundCameraStartStop = true; foundCameraStartStop = true;
break; break;
case MAV_CMD_IMAGE_START_CAPTURE: case MAV_CMD_IMAGE_START_CAPTURE:
// Only keep the first of these commands that are found if (resumeItem->param3() != 0) {
if (foundCameraStartStop) { // Remove commands which do not trigger by time
resumeMission.removeAt(prefixCommandCount); resumeMission.removeAt(prefixCommandCount);
break;
} }
if (resumeItem->param3() != 0) { if (foundCameraStartStop) {
// Remove commands which do no trigger by time // Only keep the first of these commands that are found
resumeMission.removeAt(prefixCommandCount); resumeMission.removeAt(prefixCommandCount);
} }
foundCameraStartStop = true; foundCameraStartStop = true;
......
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