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

the bug in icm20948.c #6

Open
hardrockdgk opened this issue Oct 19, 2022 · 0 comments
Open

the bug in icm20948.c #6

hardrockdgk opened this issue Oct 19, 2022 · 0 comments

Comments

@hardrockdgk
Copy link

hardrockdgk commented Oct 19, 2022

Hi, I've found the bug in icm20948.c file.

void icm20948_accel_low_pass_filter(uint8_t config)
{
uint8_t new_val = read_single_icm20948_reg(ub_2, B2_ACCEL_CONFIG);
new_val |= config << 3;

// Bug !!! write_single_icm20948_reg(ub_2, B2_GYRO_CONFIG_1, new_val);
write_single_icm20948_reg(ub_2, B2_ACCEL_CONFIG, new_val);

}

Best Regards
James

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant