Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Left-shift instead of right-shift when setting sample rate #109

@yanivamichy

Description

@yanivamichy

Hi, while configuring my sensor I noticed the following:
Inside ICM_20948_set_sample_rate the high bytes are taken by left shifting instead of right shifting (in line 795 of ICM_20948_C.c)
"uint8_t div1 = (smplrt.a << 8);"

these bytes are almost always zero so it mostly won't matter, but it is an instant fix anyhow.
yaniv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions