AP_Baro: fix BMP280 scale

This commit is contained in:
night-ghost 2018-04-11 11:33:28 +05:00 committed by Andrew Tridgell
parent 781a0b457b
commit 740e322438
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ void AP_Baro_BMP280::_update_pressure(int32_t press_raw)
p = ((p + var1 + var2) >> 8) + (((int64_t)_p7) << 4);
const float press = (float)p / 25600.0f;
const float press = (float)p / 256.0f;
if (!pressure_ok(press)) {
return;
}