diff --git a/libraries/AP_DAL/AP_DAL.cpp b/libraries/AP_DAL/AP_DAL.cpp index 6c53d2a159..1154015f06 100644 --- a/libraries/AP_DAL/AP_DAL.cpp +++ b/libraries/AP_DAL/AP_DAL.cpp @@ -435,7 +435,8 @@ AP_DAL &dal() */ void rprintf(const char *format, ...) { -#if APM_BUILD_TYPE(APM_BUILD_Replay) || CONFIG_HAL_BOARD == HAL_BOARD_SITL + +#if (APM_BUILD_TYPE(APM_BUILD_Replay) || CONFIG_HAL_BOARD == HAL_BOARD_SITL) && CONFIG_HAL_BOARD != HAL_BOARD_CHIBIOS #if APM_BUILD_TYPE(APM_BUILD_Replay) const char *fname = "/tmp/replay.log"; #elif CONFIG_HAL_BOARD == HAL_BOARD_SITL