Sensor fails to open after registration

I wrote an MPU6050 driver myself. Currently, I can see the device using list_device:

image

However, when I try to read data, I cannot open the device. What could be the problem?

image

main.c (2.1 KB)

sensor_my_MPU6050.c (4.9 KB) Here are my main and sensor registration functions.

image

By default, the control returns failure for unhandled CMDs, such as RT_SENSOR_CTRL_SET_POWER. It will return failure, so please check whether it failed here during device open.

Thank you for the answer; I changed it to return EOK and it now runs normally.