wangjianyu3
|
bdddc76997
|
nuttx/uorb: Fix incompatible type error
Related: b17c074a18
Log:
Error: sensors/ms56xx_uorb.c:145:20: error: initialization of 'int (*)(struct sensor_lowerhalf_s *, struct file *, uint32_t *)' {aka 'int (*)(struct sensor_lowerhalf_s *, struct file *, unsigned int *)'} from incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, long unsigned int *)' [-Werror=incompatible-pointer-types]
145 | .set_interval = ms56xx_set_interval,
| ^~~~~~~~~~~~~~~~~~~
sensors/ms56xx_uorb.c:145:20: note: (near initialization for 'g_sensor_ops.set_interval')
cc1: all warnings being treated as errors
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
|
2024-09-19 19:54:38 +08:00 |
|
wangjianyu3
|
3ab62370cb
|
nuttx/uorb: Fix initialization error of variable of type struct sensor_ops_s
Related change:
.flush : 403469336f
.get_info : 703bb7e7b3
Error Log:
1153 Building NuttX...
1154Error: sensors/bme680_uorb.c:428:3: error: initialization of 'int (*)(struct sensor_lowerhalf_s *, struct file *, long unsigned int)' from incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, int, long unsigned int)' [-Werror=incompatible-pointer-types]
1155 428 | bme680_control /* control */
1156 | ^~~~~~~~~~~~~~
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
|
2024-09-19 19:54:38 +08:00 |
|
Petro Karashchenko
|
d499ac9d58
|
nuttx: fix multiple 'FAR', 'CODE' and style issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
|
2024-08-25 19:22:15 +08:00 |
|
raiden00pl
|
6621748fe8
|
sensors/bmi270_uorb.c: move init sequence to register function
otherwise default accel and gyro scale configured during registration is cleared
|
2024-04-28 21:31:39 +08:00 |
|
raiden00pl
|
a34007b81f
|
sensors/bmi270_uorb.c: fix condition for sensor stop
|
2024-04-28 13:21:54 +08:00 |
|
raiden00pl
|
5af805b2ef
|
sensors/bmi270: add support for the new sensor framework
bmi270 can be used with the new sensor framework
|
2024-04-21 19:06:18 +08:00 |
|