Fix RPi2 build system

This commit is contained in:
Kabir Mohammed
2016-05-19 15:41:50 +02:00
committed by Lorenz Meier
parent 02ba3317e9
commit 529460d573
8 changed files with 245 additions and 26 deletions
@@ -178,10 +178,10 @@ int DfBmp280Wrapper::_publish(struct baro_sensor_data &data)
const double R = 287.05; /* ideal gas constant in J/kg/K */
/* current pressure at MSL in kPa */
double p1 = MSL_PRESSURE / 1000.0;
double p1 = MSL_PRESSURE / 1000.0f;
/* measured pressure in kPa */
double p = data.pressure_pa / 1000.0;
double p = data.pressure_pa / 1000.0f;
/*
* Solve: