AP_DAL: allow replay on ChibiOS

This commit is contained in:
Andrew Tridgell 2020-11-09 13:06:04 +11:00
parent f121c250ae
commit f4bf2ec3fe
1 changed files with 2 additions and 1 deletions

View File

@ -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