Skip to content

readAcceleration() and readGyroscope() error checking is wrong #43

@pberndt

Description

@pberndt

if (!readRegisters(LSM6DSOX_OUTX_L_XL, (uint8_t*)data, sizeof(data))) {

if (!readRegisters(LSM6DSOX_OUTX_L_G, (uint8_t*)data, sizeof(data))) {

Instead of "if(!readRegisters())", the code should check whether the return value of readRegisters() is != 1, as is already done correctly in other places.

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