bmi160: fix compile warning and %zu replace %u
VELAPLATFO-45270 nuttx/drivers/sensors/bmi160.c: In function ‘bmi160_set_normal_imu’: nuttx/drivers/sensors/bmi160.c:79:3: warning: implicit declaration of function ‘up_mdelay’ [-Wimplicit-function-declaration] 79 | up_mdelay(30); | ^~~~~~~~~ Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
parent
cf95305934
commit
50f16c840c
|
@ -147,7 +147,7 @@ static ssize_t bmi160_read(FAR struct file *filep, FAR char *buffer,
|
|||
|
||||
if (len < sizeof(struct accel_gyro_st_s))
|
||||
{
|
||||
snerr("Expected buffer size is %u\n", sizeof(struct accel_gyro_st_s));
|
||||
snerr("Expected buffer size is %zu\n", sizeof(struct accel_gyro_st_s));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/spi/spi.h>
|
||||
|
|
Loading…
Reference in New Issue