Fix sensors/mpu60x0.c:650:23: error: unused function '__mpu_read_who_am_i'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
22768ede17
commit
a4eeeb23de
@ -645,15 +645,6 @@ static inline int __mpu_write_config(FAR struct mpu_dev_s *dev,
|
||||
return __mpu_write_reg(dev, CONFIG, &val, sizeof(val));
|
||||
}
|
||||
|
||||
/* WHO_AM_I (0x75) : read-only, always returns 0x68 for mpu60x0 */
|
||||
|
||||
static inline uint8_t __mpu_read_who_am_i(FAR struct mpu_dev_s *dev)
|
||||
{
|
||||
uint8_t val = 0xff;
|
||||
__mpu_read_reg(dev, WHO_AM_I, &val, sizeof(val));
|
||||
return val;
|
||||
}
|
||||
|
||||
/* Resets the mpu60x0, sets it to a default configuration. */
|
||||
|
||||
static int mpu_reset(FAR struct mpu_dev_s *dev)
|
||||
|
Loading…
Reference in New Issue
Block a user