diff --git a/ArduCopter/Log.cpp b/ArduCopter/Log.cpp index 27c76a9d14..16f37a5ced 100644 --- a/ArduCopter/Log.cpp +++ b/ArduCopter/Log.cpp @@ -378,9 +378,9 @@ void Copter::Log_Write_Attitude() DataFlash.Log_Write_Attitude(ahrs, targets); #if OPTFLOW == ENABLED - DataFlash.Log_Write_EKF(ahrs,optflow.enabled()); + DataFlash.Log_Write_EKF2(ahrs,optflow.enabled()); #else - DataFlash.Log_Write_EKF(ahrs,false); + DataFlash.Log_Write_EKF2(ahrs,false); #endif DataFlash.Log_Write_AHRS2(ahrs); #if CONFIG_HAL_BOARD == HAL_BOARD_SITL