Added F to hard float values
authorKevin Townsend <kevin@ktownsend.com>
Wed, 20 Jun 2012 07:51:29 +0000 (09:51 +0200)
committerKevin Townsend <kevin@ktownsend.com>
Wed, 20 Jun 2012 07:51:29 +0000 (09:51 +0200)
drivers/sensors/mpl115a2/mpl115a2.c

index c815f14..1d03c29 100644 (file)
@@ -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;
 }
This page took 0.029061 seconds and 4 git commands to generate.