AP_Mission: image-stop-capture fix for instance

This commit is contained in:
Randy Mackay 2023-09-22 20:42:28 +09:00 committed by Andrew Tridgell
parent b08fa29574
commit 200bc6c849
1 changed files with 1 additions and 1 deletions

View File

@ -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: