Skip to content

Commit 9442f2d

Browse files
authored
Update KX0231025IMU.cpp
Fixed wrong parameter name
1 parent fb283ff commit 9442f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KX0231025IMU.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ int KX0231025Class::begin(int powerMode, int accelerationRange, int outputDataRa
104104

105105
int activateValue = 0x80 | powerMode;
106106

107-
if (this->accelerationRange == KX0231025_RANGE_4G)
107+
if (this->_accelerationRange == KX0231025_RANGE_4G)
108108
{
109109
activateValue = activateValue | 0x08;
110110
}
111-
if (this->accelerationRange == KX0231025_RANGE_8G)
111+
if (this->_accelerationRange == KX0231025_RANGE_8G)
112112
{
113113
activateValue = activateValue | 0x10;
114114
}

0 commit comments

Comments
 (0)