diff --git a/ArduPlane/Log.cpp b/ArduPlane/Log.cpp index 07cb91c392..2fdea53b49 100644 --- a/ArduPlane/Log.cpp +++ b/ArduPlane/Log.cpp @@ -195,11 +195,7 @@ void Plane::Log_Write_Attitude(void) } #if AP_AHRS_NAVEKF_AVAILABLE - #if OPTFLOW == ENABLED - DataFlash.Log_Write_EKF(ahrs,optflow.enabled()); - #else - DataFlash.Log_Write_EKF(ahrs,false); - #endif + DataFlash.Log_Write_EKF(ahrs); DataFlash.Log_Write_AHRS2(ahrs); #endif #if CONFIG_HAL_BOARD == HAL_BOARD_SITL