X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/ae0a1c842a4e709b98440c561ece7c4fda19e86c..1ab16aec62e20065faba56c469ddf75830860162:/drivers/sensors/mpl115a2/mpl115a2.c diff --git a/drivers/sensors/mpl115a2/mpl115a2.c b/drivers/sensors/mpl115a2/mpl115a2.c index c815f14..1d03c29 100644 --- 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.0F / 1023.0F)*(float)Pcomp) + 50; return error; }