diff --git a/ArduCopter/Log.cpp b/ArduCopter/Log.cpp index c43f34321e..411d205ee9 100644 --- a/ArduCopter/Log.cpp +++ b/ArduCopter/Log.cpp @@ -388,11 +388,7 @@ void Copter::Log_Write_Attitude() // Write an EKF and POS packet void Copter::Log_Write_EKF_POS() { - #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); #if CONFIG_HAL_BOARD == HAL_BOARD_SITL sitl.Log_Write_SIMSTATE(&DataFlash);