Skip to content

LIS3MDL SPI driver: address reading is not advanced #1176

@ser-plu

Description

@ser-plu

When using LIS3MDL with Lis3TransportSpi, the data addressing does not automatically increment. Therefore one value is read to all registers.

To fix this, this line needs to be corrected:

RF_CALL(SpiMaster::transfer(reg | Read));
to

RF_CALL(SpiMaster::transfer(reg | Read | AddressIncrement ));

However, this should be applied not to all sensors. I have checked another LIS3 sensor, and it does not have the autoincrement bit.

Metadata

Metadata

Assignees

No one assigned

    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