Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 | 
--- 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) {
    