Skip to content

Commit

Permalink
AP_Mission: image-stop-capture fix for instance
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Sep 22, 2023
1 parent 0bd7f1e commit 5c0bacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Mission/AP_Mission_Commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ bool AP_Mission::start_command_camera(const AP_Mission::Mission_Command& cmd)
camera->stop_capture();
return true;
}
return camera->stop_capture(cmd.p1);
return camera->stop_capture(cmd.p1 - 1);

case MAV_CMD_VIDEO_START_CAPTURE:
case MAV_CMD_VIDEO_STOP_CAPTURE:
Expand Down

0 comments on commit 5c0bacc

Please sign in to comment.