mirror of
https://github.com/apache/nuttx.git
synced 2025-12-14 15:56:20 +08:00
Update goldfish_sensor_uorb.c
This commit is contained in:
committed by
Xiang Xiao
parent
c41c726161
commit
2db0b69335
@@ -729,7 +729,7 @@ static int goldfish_sensor_get_info(FAR struct sensor_lowerhalf_s *lower,
|
|||||||
handle = goldfish_get_priv(lower, &priv);
|
handle = goldfish_get_priv(lower, &priv);
|
||||||
if (handle < 0)
|
if (handle < 0)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < sizeof(g_goldfish_sensor_info); i++)
|
for (i = 0; i < sizeof(g_goldfish_sensor_info); i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user