Return appropriate error and use logging helper when unsupported input is requested

This commit is contained in:
Sapphire
2025-06-28 10:29:46 +02:00
committed by xytovl
parent 8691be2677
commit 6377f21b99
4 changed files with 8 additions and 22 deletions
+2 -2
View File
@@ -124,8 +124,8 @@ xrt_result_t wivrn_hmd::get_tracked_pose(xrt_input_name name, int64_t at_timesta
{
if (name != XRT_INPUT_GENERIC_HEAD_POSE)
{
U_LOG_E("Unknown input name");
return {};
U_LOG_XDEV_UNSUPPORTED_INPUT(this, u_log_get_global_level(), name);
return XRT_ERROR_INPUT_UNSUPPORTED;
}
auto [extrapolation_time, view] = views.get_at(at_timestamp_ns);