t/common: Clean up comments and variable names

This commit is contained in:
Rylie Pavlik 2024-05-03 14:22:27 -05:00
parent f3a82dd868
commit c51da5c584
2 changed files with 9 additions and 11 deletions

View file

@ -356,17 +356,17 @@ ns_setup_depthai_device(struct ns_builder *nsb,
.gt = slam_sinks->gt,
};
struct xrt_slam_sinks dummy_slam_sinks = {0};
dummy_slam_sinks.imu = entry_sinks.imu;
struct xrt_slam_sinks unused_slam_sinks = {0};
unused_slam_sinks.imu = entry_sinks.imu;
u_sink_force_genlock_create( //
xfctx, //
entry_sinks.cams[0], //
entry_sinks.cams[1], //
&dummy_slam_sinks.cams[0], //
&dummy_slam_sinks.cams[1]); //
u_sink_force_genlock_create( //
xfctx, //
entry_sinks.cams[0], //
entry_sinks.cams[1], //
&unused_slam_sinks.cams[0], //
&unused_slam_sinks.cams[1]); //
xrt_fs_slam_stream_start(the_fs, &dummy_slam_sinks);
xrt_fs_slam_stream_start(the_fs, &unused_slam_sinks);
return XRT_SUCCESS;
}

View file

@ -106,7 +106,6 @@ steamvr_open_system(struct xrt_builder *xb,
struct xrt_system_devices *xsysd = NULL;
xrt_result_t result = XRT_SUCCESS;
// Sanity checking.
if (out_xsysd == NULL || *out_xsysd != NULL) {
LH_ERROR("Invalid output system pointer");
return XRT_ERROR_DEVICE_CREATION_FAILED;
@ -127,7 +126,6 @@ steamvr_open_system(struct xrt_builder *xb,
// Look for regular devices.
u_device_assign_xdev_roles(xsysd->xdevs, xsysd->xdev_count, &head_idx, &left_idx, &right_idx);
// Sanity check.
if (head_idx < 0) {
LH_ERROR("Unable to find HMD");
result = XRT_ERROR_DEVICE_CREATION_FAILED;