Skip to content

Commit 9167e11

Browse files
authored
Merge pull request #4 from tealbrains/master
fixed setMode() function
2 parents 76e65e6 + 6bff637 commit 9167e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_LIS2DH12.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void SPARKFUN_LIS2DH12::disableTemperature()
392392

393393
void SPARKFUN_LIS2DH12::setMode(uint8_t mode)
394394
{
395-
if (mode > LIS2DH12_HR_12bit)
395+
if (mode > LIS2DH12_LP_8bit)
396396
mode = LIS2DH12_HR_12bit; //Default to 12 bit
397397

398398
currentMode = mode;

0 commit comments

Comments
 (0)