Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bug in lps22hb driver

Hi,

In SDK 15.3 I have found a bug in internal implementation of the lps22hb external driver.

Bug description:
Unable to set properly a INT_S[2:1] bits in CTRL_REG3 register which is a INT_DRDY pin configuration.

File: lps22hb_internal.h
Source code fragment in topic:

The problem exist in the last register set:

In use of 'NRF_TWI_SENSOR_REG_SET()' at third parameter - which should be a bit position, need to pass a 'LPS22HB_INT_S_POS' instead of 'LPS22HB_INT_S_MASK'

Parents Reply Children
No Data