Skip to content

Commit d7c2154

Browse files
committed
v2.0.3
1 parent 0d65289 commit d7c2154

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=SparkFun KX13X Arduino Library
2-
version=2.0.2
2+
version=2.0.3
33
author=SparkFun Electronics <[email protected]>
44
maintainer=Elias Santistevan @ SparkFun Electronics
55
sentence=Communicates and configures the SparkFun KX132/KX134 Accelerometer.
66
paragraph=This library breaks out all the functionality of the Kionix KX132 and KX134.
77
category=Sensors
8-
url=www.github.com/sparkfun/SparkFun_KX13X_Arduino_Library
8+
url=https://github.com/sparkfun/SparkFun_KX13X_Arduino_Library
99
architectures=*

src/SparkFun_Qwiic_KX13X.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ bool QwDevKX13X::setBufferThreshold(uint8_t threshold)
10741074
int retVal;
10751075
uint8_t tempVal;
10761076

1077-
if (threshold < 2 || threshold > 171)
1077+
if ((threshold < 2) || (threshold > 171))
10781078
return false;
10791079

10801080
retVal = readRegisterRegion(SFE_KX13X_BUF_CNTL2, &tempVal, 1);
@@ -1245,7 +1245,7 @@ uint16_t QwDevKX13X::getSampleLevel()
12451245
return 0;
12461246

12471247
numSamples = tempVal[0];
1248-
numSamples = numSamples | (((uint16_t)tempVal[1] & 0x03) << 8);
1248+
numSamples |= (((uint16_t)tempVal[1] & 0x03) << 8);
12491249

12501250
return numSamples;
12511251
}

0 commit comments

Comments
 (0)