From 2d8a39b7311474bfa650b9197fa3f8a0bcaafc43 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 2 Sep 2020 18:36:47 +0100 Subject: [PATCH] d/v4l2: Set correct name on variable tracker --- src/xrt/drivers/v4l2/v4l2_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/drivers/v4l2/v4l2_driver.c b/src/xrt/drivers/v4l2/v4l2_driver.c index 6cf7f96c0..f9500778e 100644 --- a/src/xrt/drivers/v4l2/v4l2_driver.c +++ b/src/xrt/drivers/v4l2/v4l2_driver.c @@ -849,7 +849,7 @@ v4l2_fs_create(struct xrt_frame_context *xfctx, const char *path) u_var_add_bool(vid, &vid->print_debug, "Debug"); u_var_add_bool(vid, &vid->print_spew, "Spew"); for (size_t i = 0; i < vid->num_states; i++) { - u_var_add_i32(vid, &vid->states[i].want[0].value, vid->states[0].name); + u_var_add_i32(vid, &vid->states[i].want[0].value, vid->states[i].name); } // clang-format on