Skip to content

Commit 93a75cf

Browse files
committed
Rolls version, removes duplicated check on threshold variable in setBufferThreshold
1 parent 0f04476 commit 93a75cf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun KX13X Arduino Library
2-
version=1.0.3
2+
version=1.0.4
33
author=SparkFun Electronics <[email protected]>
44
maintainer=Elias Santistevan @ SparkFun Electronics
55
sentence=Communicates and configures the SparkFun KX132/KX134 Accelerometer.

src/SparkFun_Qwiic_KX13X.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ bool QwiicKX13xCore::setBufferThreshold(uint8_t threshold){
301301

302302
if( threshold > 86 && resolution == 1 ) // 1 = 16bit resolution, max samples: 86
303303
threshold == 86;
304-
else if( threshold > 171 ) // None the less, can't have more than 171 samples
305-
threshold == 171;
306304

307305
returnError = writeRegister(KX13X_BUF_CNTL1, 0x00, threshold, 0);
308306
if( returnError == KX13X_SUCCESS )

0 commit comments

Comments
 (0)