Skip to content

Commit b2c6d96

Browse files
120MFkartben
authored andcommitted
sensor: bmi08x: Fix variable name in bmi08x_acc_trigger_mode_init
Fix undeclared variable error by changing 'config' to 'cfg' in the data_sync condition check, matching the variable name declared at the beginning of the function. Signed-off-by: Liang Jiaxiang <moonbite233@gmail.com>
1 parent edc9142 commit b2c6d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/bosch/bmi08x/bmi08x_accel_trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int bmi08x_acc_trigger_mode_init(const struct device *dev)
111111
#endif
112112

113113
#if BMI08X_ACCEL_ANY_INST_HAS_DATA_SYNC
114-
if (config->data_sync != 0) {
114+
if (cfg->data_sync != 0) {
115115
/* set accel ints */
116116
ret = bmi08x_accel_byte_write(dev, BMI08X_REG_ACCEL_INT1_MAP, cfg->int1_map);
117117
if (ret < 0) {

0 commit comments

Comments
 (0)