Skip to content

lsm9ds1: magnetometer interrupt latch mode fix - #124

Merged
albezanc merged 1 commit into
STMicroelectronics:masterfrom
sensometafisico:master
Apr 23, 2021
Merged

albezanc merged 1 commit into
STMicroelectronics:masterfrom
sensometafisico:master

Conversation

@sensometafisico

Copy link
Copy Markdown

Device part numbers

lsm9ds1

Checklist

  • improvement
  • bug-fix
  • other

Description

According to DocID025715 Rev 3 (page 67), for magnetometer the IEL field in INT_CFG_M register follows this logic:

0 = Interrupt request Latched
1 = Interrupt request NOT Latched

but the code in function lsm9ds1_pin_notification_set sets it the opposite (XL & G) way.

…eld in INT_CFG_M register follows this logic:

    0 = Interrupt request Latched
    1 = Interrupt request NOT Latched
@albezanc albezanc added the bug Something isn't working label Apr 23, 2021
@albezanc albezanc changed the title lsm9ds1 magnetometer interrupt latch mode fix lsm9ds1: magnetometer interrupt latch mode fix Apr 23, 2021
@albezanc
albezanc merged commit f3df002 into STMicroelectronics:master Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants