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>
This commit is contained in:
parent
edc9142f50
commit
b2c6d960cb
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ int bmi08x_acc_trigger_mode_init(const struct device *dev)
|
|||
#endif
|
||||
|
||||
#if BMI08X_ACCEL_ANY_INST_HAS_DATA_SYNC
|
||||
if (config->data_sync != 0) {
|
||||
if (cfg->data_sync != 0) {
|
||||
/* set accel ints */
|
||||
ret = bmi08x_accel_byte_write(dev, BMI08X_REG_ACCEL_INT1_MAP, cfg->int1_map);
|
||||
if (ret < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue