Skip to content

Commit 49ff2a5

Browse files
nixwardcarlescufi
authored andcommitted
drivers: sensor: bmm150: fix soft reset
Bit 7 and 1 is 0x82 not 0x81. Signed-off-by: Nick Ward <[email protected]>
1 parent 264d3f0 commit 49ff2a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/sensor/bmm150/bmm150.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ extern const struct bmm150_bus_io bmm150_bus_io_i2c;
8282

8383
#define BMM150_REG_POWER 0x4B
8484
#define BMM150_MASK_POWER_CTL BIT(0)
85-
#define BMM150_MASK_SOFT_RESET (BIT(1) | BIT(7))
86-
#define BMM150_SOFT_RESET 0x81
85+
#define BMM150_MASK_SOFT_RESET (BIT(7) | BIT(1))
86+
#define BMM150_SOFT_RESET BMM150_MASK_SOFT_RESET
8787

8888
#define BMM150_REG_OPMODE_ODR 0x4C
8989
#define BMM150_MASK_OPMODE (BIT(2) | BIT(1))

0 commit comments

Comments
 (0)