Skip to content

Commit b8f94ca

Browse files
ymleung314nashif
authored andcommitted
drivers: icm42688: move misleading debug message
When SENSOR_TRIG_FIFO_WATERMARK or SENSOR_TRIG_FIFO_FULL is not configured, an unsupported trigger debug message will be printed. Moved such that a no trigger configured debug message will be printed only if both triggers are not configured. Signed-off-by: Yau-ming Leung <ymleung314@gmail.com>
1 parent 3da7808 commit b8f94ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/tdk/icm42688/icm42688_rtio_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ icm42688_get_read_config_trigger(const struct sensor_read_config *cfg,
171171
return &cfg->triggers[i];
172172
}
173173
}
174-
LOG_DBG("Unsupported trigger (%d)", trig);
175174
return NULL;
176175
}
177176

@@ -207,6 +206,7 @@ static void icm42688_int_status_cb(struct rtio *r, const struct rtio_sqe *sqr, v
207206
FIELD_GET(BIT_INT_STATUS_FIFO_FULL, drv_data->int_status) != 0;
208207

209208
if (!has_fifo_ths_trig && !has_fifo_full_trig) {
209+
LOG_DBG("No FIFO trigger is configured");
210210
gpio_pin_interrupt_configure_dt(&drv_cfg->gpio_int1, GPIO_INT_EDGE_TO_ACTIVE);
211211
return;
212212
}

0 commit comments

Comments
 (0)