AP_AHRS: split AP_HAL_SITL and HAL_SIM_ENABLED

This commit is contained in:
Peter Barker 2021-10-30 11:38:13 +11:00 committed by Peter Barker
parent 318678ac96
commit 7ad9609fb7
2 changed files with 2 additions and 2 deletions

View File

@ -3141,7 +3141,7 @@ void AP_AHRS::Log_Write()
Write_AHRS2();
Write_POS();
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#if AP_AHRS_SIM_ENABLED
AP::sitl()->Log_Write_SIMSTATE();
#endif
}

View File

@ -33,7 +33,7 @@
#endif
#ifndef AP_AHRS_SIM_ENABLED
#define AP_AHRS_SIM_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
#define AP_AHRS_SIM_ENABLED AP_SIM_ENABLED
#endif
#if AP_AHRS_SIM_ENABLED