Skip to content

Commit dba487e

Browse files
teburdMaureenHelm
authored andcommitted
icm42688: Interrupt pulse for 4khz+ sampling
Always set the interrupt pulse settings when sampling at greater than 4khz to better ensure the interrupt line is toggled and caught correctly. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
1 parent da5030e commit dba487e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/sensor/icm42688/icm42688_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ int icm42688_configure(const struct device *dev, struct icm42688_cfg *cfg)
182182

183183
uint8_t int_config1 = 0;
184184

185-
if (cfg->fifo_en && (cfg->accel_odr <= ICM42688_ACCEL_ODR_4000 ||
186-
cfg->gyro_odr <= ICM42688_GYRO_ODR_4000)) {
185+
if ((cfg->accel_odr <= ICM42688_ACCEL_ODR_4000 ||
186+
cfg->gyro_odr <= ICM42688_GYRO_ODR_4000)) {
187187
int_config1 = FIELD_PREP(BIT_INT_TPULSE_DURATION, 1) |
188188
FIELD_PREP(BIT_INT_TDEASSERT_DISABLE, 1);
189189
}

0 commit comments

Comments
 (0)