test projet ne pas utiliser
Fork of ADXL345 by
Revision 2:3d12d27eb413, committed 2018-03-28
- Comitter:
- JohanBeverini
- Date:
- Wed Mar 28 17:01:20 2018 +0000
- Parent:
- 1:45faba962a46
- Commit message:
- code projet M1 + ensil
Changed in this revision
ADXL345.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 45faba962a46 -r 3d12d27eb413 ADXL345.cpp --- 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) {