void ADXL345::setFifoControl(int settings){ oneByteWrite(ADXL345_FIFO_STATUS, settings);//must be ...FIFI_CTL }

corrected error in void ADXL345::setFifoControl(int settings){

oneByteWrite(ADXL345_FIFO_STATUS, settings); must be ADXL345_FIFO_CTL

}

Files at this revision

API Documentation at this revision

Comitter:
georgesla
Date:
Tue Nov 13 07:29:58 2018 +0000
Parent:
0:bd8f0f20f433
Commit message:
void ADXL345::setFifoControl(int settings){; ; oneByteWrite(ADXL345_FIFO_STATUS, settings);//error must be _FIFO_CTL; ; }

Changed in this revision

ADXL345.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r bd8f0f20f433 -r 06470733e546 ADXL345.cpp
--- a/ADXL345.cpp	Mon Sep 06 13:53:03 2010 +0000
+++ b/ADXL345.cpp	Tue Nov 13 07:29:58 2018 +0000
@@ -333,7 +333,7 @@
 
 void ADXL345::setFifoControl(int settings){
 
-    oneByteWrite(ADXL345_FIFO_STATUS, settings);
+    oneByteWrite(ADXL345_FIFO_CTL, settings);
 
 }