Skip to content

Commit d95ca65

Browse files
ymleung314kartben
authored andcommitted
drivers: icm42688: fix FIFO HIRES packet gyro scale
The original scale value used to convert raw gyro value to q31 format is incorrect. Updated to the correct value. Signed-off-by: Yau-ming Leung <ymleung314@gmail.com>
1 parent 93f2143 commit d95ca65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/tdk/icm42688/icm42688_decoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int icm42688_read_imu_from_packet(const uint8_t *pkt, bool is_accel, int
250250

251251
const uint32_t scale[2][2] = {
252252
/* low-res, hi-res */
253-
{35744, 8936}, /* gyro */
253+
{35744, 2235}, /* gyro */
254254
{40168, 2511}, /* accel */
255255
};
256256

0 commit comments

Comments
 (0)