Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 17f55ef

Browse files
committedSep 9, 2021
Removes extraneous returnError check in setOutputDataRate
1 parent 0451a44 commit 17f55ef

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed
 

‎src/SparkFun_Qwiic_KX13X.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@ bool QwiicKX13xCore::setOutputDataRate(uint8_t rate){
164164

165165
KX13X_STATUS_t returnError;
166166
returnError = writeRegister(KX13X_ODCNTL, 0xF0, rate, 0);
167-
if( returnError == KX13X_SUCCESS )
168-
return true;
169-
else
170-
return false;
171167
if( returnError == KX13X_SUCCESS ){
172168
accelControl(accelState);
173169
return true;

0 commit comments

Comments
 (0)
Please sign in to comment.