Skip to content

Commit 1726443

Browse files
wuhanstudioaescolar
authored andcommitted
drivers: sensor: mpu9250: fix mismatched value in log message
The print message prints cfg->accel_fs when cfg->gyro_fs is too big. Signed-off-by: Han Wu <[email protected]>
1 parent 0a56dc8 commit 1726443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/tdk/mpu9250/mpu9250.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static int mpu9250_init(const struct device *dev)
280280
drv_data->accel_sensitivity_shift = 14 - cfg->accel_fs;
281281

282282
if (cfg->gyro_fs > MPU9250_GYRO_FS_MAX) {
283-
LOG_ERR("Gyro FS is too big: %d", cfg->accel_fs);
283+
LOG_ERR("Gyro FS is too big: %d", cfg->gyro_fs);
284284
return -EINVAL;
285285
}
286286

0 commit comments

Comments
 (0)