Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in bmi088_mma.c - bmi088_mma_set_high_g_config #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bmi088_mma.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ int8_t bmi088_mma_set_high_g_config(const struct bmi088_mm_high_g_cfg *config, s
/* Set duration */
feature_config[idx + 2] = BMI08_SET_BITS_POS_0(feature_config[idx + 2], BMI088_MM_HIGH_G_DUR, config->duration);

rslt = bmi08a_set_regs(BMI08_REG_ACCEL_FEATURE_CFG, (uint8_t*) feature_config, 32, dev);
rslt = bmi08a_set_regs(BMI08_REG_ACCEL_FEATURE_CFG, (uint8_t*) feature_config, sizeof(feature_config), dev); //corrected size from "32" to "sizeof(feature_config)" that is only 12byte
}

return rslt;
Expand Down