drivers: sensor: hts221: correct bit for CTRL_REG1.BDU
Setting bit 3 instead of bit 2 modifies a reserved section of the register, with the impact that the ODR is not as configured. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
9f15116fd7
commit
4cd19eaeee
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
#define HTS221_REG_CTRL1 0x20
|
||||
#define HTS221_PD_BIT BIT(7)
|
||||
#define HTS221_BDU_BIT BIT(3)
|
||||
#define HTS221_BDU_BIT BIT(2)
|
||||
#define HTS221_ODR_SHIFT 0
|
||||
|
||||
#define HTS221_REG_CTRL3 0x22
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue