test projet ne pas utiliser
Fork of ADXL345 by
Diff: ADXL345.cpp
- Revision:
- 2:3d12d27eb413
- Parent:
- 1:45faba962a46
--- a/ADXL345.cpp Fri Oct 07 21:06:14 2011 +0000 +++ b/ADXL345.cpp Wed Mar 28 17:01:20 2018 +0000 @@ -272,7 +272,7 @@ float ADXL345::getTapLatency(void) { - return (float)SingleByteRead(ADXL345_LATENT_REG)*1.25; + return (float)SingleByteRead(ADXL345_LATENT_REG)*1.25f; } int ADXL345::setTapLatency(short int latency_ms) { @@ -287,7 +287,7 @@ float ADXL345::getWindowTime(void) { - return (float)SingleByteRead(ADXL345_WINDOW_REG)*1.25; + return (float)SingleByteRead(ADXL345_WINDOW_REG)*1.25f; } int ADXL345::setWindowTime(short int window_ms) {