Skip to content

Commit

Permalink
Update ADXL345_WE.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wollewald authored Nov 7, 2021
1 parent 8f4b712 commit 030ede4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ADXL345_WE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ String ADXL345_WE::getActTapStatusAsString(){
/************ FIFO ************/

void ADXL345_WE::setFifoParameters(adxl345_triggerInt intNumber, uint8_t samples){
regVal = 0;
regVal = readRegister8(ADXL345_FIFO_CTL);
regVal &= 0b11000000;
regVal |= (samples-1);
if(intNumber == ADXL345_TRIGGER_INT_2){
regVal |= 0x20;
Expand Down

0 comments on commit 030ede4

Please sign in to comment.