Skip to content

Commit b912ef4

Browse files
authored
Merge pull request #2 from dHutchings/doug/range_fixes
Fix bug regarding the setFullScale function on the H3LIS331DL & LIS3DH
2 parents 24db1d7 + 488727a commit b912ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_LIS331.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void LIS331::setFullScale(fs_range range)
253253
uint8_t data;
254254
LIS331_read(CTRL_REG4, &data, 1);
255255
data &= ~0xcf;
256-
data |= range<<5;
256+
data |= range<<4;
257257
LIS331_write(CTRL_REG4, &data, 1);
258258
}
259259

0 commit comments

Comments
 (0)