diff --git a/ArduCopter/Log.cpp b/ArduCopter/Log.cpp index 487684157f..353bb7da91 100644 --- a/ArduCopter/Log.cpp +++ b/ArduCopter/Log.cpp @@ -365,7 +365,7 @@ void Copter::Log_Write_Attitude() #endif DataFlash.Log_Write_AHRS2(ahrs); #if CONFIG_HAL_BOARD == HAL_BOARD_SITL - sitl.Log_Write_SIMSTATE(DataFlash); + sitl.Log_Write_SIMSTATE(&DataFlash); #endif DataFlash.Log_Write_POS(ahrs); }