X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/ae0a1c842a4e709b98440c561ece7c4fda19e86c..0e08764c8201f13bd03e685bfc7a2e5ee65dc540:/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; }