From 5c0bacc1a2c316795f4b6c80f8d1b153b7bf04e6 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 22 Sep 2023 20:42:28 +0900 Subject: [PATCH] AP_Mission: image-stop-capture fix for instance --- libraries/AP_Mission/AP_Mission_Commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Mission/AP_Mission_Commands.cpp b/libraries/AP_Mission/AP_Mission_Commands.cpp index 8c067382a9994..83716ec71849c 100644 --- a/libraries/AP_Mission/AP_Mission_Commands.cpp +++ b/libraries/AP_Mission/AP_Mission_Commands.cpp @@ -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: