projects
/
hackover2013-badge-firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1027d62
)
Added F to hard float values
author
Kevin Townsend
<kevin@ktownsend.com>
Wed, 20 Jun 2012 07:51:29 +0000
(09:51 +0200)
committer
Kevin Townsend
<kevin@ktownsend.com>
Wed, 20 Jun 2012 07:51:29 +0000
(09:51 +0200)
drivers/sensors/mpl115a2/mpl115a2.c
patch
|
blob
|
history
diff --git
a/drivers/sensors/mpl115a2/mpl115a2.c
b/drivers/sensors/mpl115a2/mpl115a2.c
index
c815f14
..
1d03c29
100644
(file)
--- a/
drivers/sensors/mpl115a2/mpl115a2.c
+++ b/
drivers/sensors/mpl115a2/mpl115a2.c
@@
-179,7
+179,7
@@
mpl115a2Error_t mpl115a2GetPressure(float *pressure)
Pcomp = _mpl115a2_a0 + (_mpl115a2_b1 + _mpl115a2_c12 * Tadc ) * Padc + _mpl115a2_b2 * Tadc;
// Return pressure as floating point value
- *pressure = ((65.0
/ 1023.0
)*(float)Pcomp) + 50;
+ *pressure = ((65.0
F / 1023.0F
)*(float)Pcomp) + 50;
return error;
}
This page took
0.029061 seconds
and
4
git commands to generate.