From 87d5b41b8471459dab50ad9d0dce38e7cea4fa9b Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 11 Apr 2017 12:05:07 +0200 Subject: [PATCH] vmount: fixed wrong index --- src/drivers/vmount/vmount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/vmount/vmount.cpp b/src/drivers/vmount/vmount.cpp index 08ca8b98c9..90fe7692a9 100644 --- a/src/drivers/vmount/vmount.cpp +++ b/src/drivers/vmount/vmount.cpp @@ -234,7 +234,7 @@ static int vmount_thread_main(int argc, char *argv[]) // messages, they will take precedence over RC. // This logic is done further below while update() is called. if (!thread_data.input_objs[2]) { - thread_data.input_objs[0] = new InputRC(params.mnt_man_roll, params.mnt_man_pitch, params.mnt_man_yaw); + thread_data.input_objs[2] = new InputRC(params.mnt_man_roll, params.mnt_man_pitch, params.mnt_man_yaw); if (!thread_data.input_objs[2]) { alloc_failed = true; } }