diff --git a/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp b/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp index 70b74f4228..c607c88c53 100644 --- a/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp +++ b/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp @@ -29,7 +29,7 @@ static AP_BoardConfig board_config; static AP_InertialSensor ins; static AP_Baro baro; AP_Int32 logger_bitmask; -static AP_Logger logger{logger_bitmask}; +static AP_Logger logger; #if HAL_EXTERNAL_AHRS_ENABLED static AP_ExternalAHRS external_ahrs; #endif @@ -123,7 +123,7 @@ void setup() sitl.gyro_file_rw.set(SITL::SIM::INSFileMode::INS_FILE_READ_STOP_ON_EOF); // SIM_GYR_FILE_RW } logger_bitmask.set(128); // IMU - logger.Init(log_structure, ARRAY_SIZE(log_structure)); + logger.init(logger_bitmask, log_structure, ARRAY_SIZE(log_structure)); ins.init(LOOP_RATE_HZ); baro.init();