diff --git a/src/comm/QGCXPlaneLink.cc b/src/comm/QGCXPlaneLink.cc index 42343f8b8fe06275fa8d1d3e4b18da871a7df40b..22169b57fd0d579ce01bc0fb9897bcbb7555cf78 100644 --- a/src/comm/QGCXPlaneLink.cc +++ b/src/comm/QGCXPlaneLink.cc @@ -624,7 +624,8 @@ void QGCXPlaneLink::readBytes() fields_changed |= (1 << 0) | (1 << 1) | (1 << 2); } - else if (p.index == 6 && xPlaneVersion == 10) + // atmospheric pressue aircraft for XPlane 9 and 10 + else if (p.index == 6) { // inHg to hPa (hecto Pascal / millibar) abs_pressure = p.f[0] * 33.863886666718317f;