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 |
|
raiden00pl
|
c9bf7a841e
|
sensors/bh1749nuc: configure I2C frequency
|
2024-05-20 10:13:42 +08:00 |
|
raiden00pl
|
147b5762f0
|
sensors/bh1749nuc_uorb.c: don't wait for VALID flag in fetch interface
otherwise the sensor freezes when we read RBG and IR data one after another
|
2024-05-20 10:13:42 +08:00 |
|
raiden00pl
|
9d768498ce
|
sensors/bh1749nuc_uorb.c: add sensor reset
|
2024-05-20 10:13:42 +08:00 |
|
raiden00pl
|
0f56d1df16
|
sensors/bh1749nuc_uorb.c: fix compilation when poll interface is disabled
|
2024-04-28 13:21:54 +08:00 |
|
raiden00pl
|
41803a0c20
|
sensors/bh1749nuc: add support for the new sensor framework
bh1749nuc can be used with the new sensor framework
|
2024-04-21 14:48:28 -03:00 |
|