AP_Logger: skip structure validation in replay

This commit is contained in:
Andrew Tridgell 2020-11-09 07:46:17 +11:00
parent d380447cd5
commit 3152da98e1
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ void AP_Logger_Backend::validate_WritePrioritisedBlock(const void *pBuffer,
bool AP_Logger_Backend::WritePrioritisedBlock(const void *pBuffer, uint16_t size, bool is_critical)
{
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL && !APM_BUILD_TYPE(APM_BUILD_Replay)
validate_WritePrioritisedBlock(pBuffer, size);
#endif
if (!ShouldLog(is_critical)) {