Skip to content

enableHPF flips wrong bit #5

@toastytato

Description

@toastytato

I noticed that the enableHPF() wasn't working, and after playing with it I realized that it was setting the wrong bit (<<5 flips the wrong bit). It should be:
if (enable) { data |= 1 << 4; } else { data &= ~(1 << 4); }

to set the FDS bit in CTRL_REG2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions