Browse Source

QgcCameraControl: reset _resetting if reset fails

QGC4.4
Willian Galvani 3 years ago committed by Patrick José Pereira
parent
commit
615278e1f1
  1. 4
      src/Camera/QGCCameraControl.cc

4
src/Camera/QGCCameraControl.cc

@ -726,6 +726,10 @@ QGCCameraControl::_mavCommandResult(int vehicleId, int component, int command, i @@ -726,6 +726,10 @@ QGCCameraControl::_mavCommandResult(int vehicleId, int component, int command, i
qCDebug(CameraControlLog) << "Command failed for" << command;
}
switch(command) {
case MAV_CMD_RESET_CAMERA_SETTINGS:
_resetting = false;
qCDebug(CameraControlLog) << "Failed to reset camera settings";
break;
case MAV_CMD_IMAGE_START_CAPTURE:
case MAV_CMD_IMAGE_STOP_CAPTURE:
if(++_captureInfoRetries < 3) {

Loading…
Cancel
Save