From 2db0b693355e7c68f7cc4adbb0b70c441c44d41d Mon Sep 17 00:00:00 2001 From: chenzihan0416 <162129788+chenzihan0416@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:09:45 +0800 Subject: [PATCH] Update goldfish_sensor_uorb.c --- drivers/sensors/goldfish_sensor_uorb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sensors/goldfish_sensor_uorb.c b/drivers/sensors/goldfish_sensor_uorb.c index 274c8946fa..736293afe5 100644 --- a/drivers/sensors/goldfish_sensor_uorb.c +++ b/drivers/sensors/goldfish_sensor_uorb.c @@ -729,7 +729,7 @@ static int goldfish_sensor_get_info(FAR struct sensor_lowerhalf_s *lower, handle = goldfish_get_priv(lower, &priv); if (handle < 0) { - return -EINVAL; + return -handle; } for (i = 0; i < sizeof(g_goldfish_sensor_info); i++)