Skip to content

Commit 54f69f4

Browse files
authored
lis3dh_i2c: fix TEMP_CFG_REG address (#483)
TEMP_CFG_REG is 0x1F, not 0xC0. See datasheet. I suspect this is a typo since the value written to it is 0xC0.
1 parent 8501c29 commit 54f69f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i2c/lis3dh_i2c/lis3dh_i2c.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
const int ADDRESS = 0x18;
2828
const uint8_t CTRL_REG_1 = 0x20;
2929
const uint8_t CTRL_REG_4 = 0x23;
30-
const uint8_t TEMP_CFG_REG = 0xC0;
30+
const uint8_t TEMP_CFG_REG = 0x1F;
3131

3232
#ifdef i2c_default
3333

0 commit comments

Comments
 (0)