AP_BoardConfig: use HAL_GCS_ENABLED in place of periph/example check

... periphs can have GCS too...
This commit is contained in:
Peter Barker 2022-07-16 15:30:22 +10:00 committed by Peter Barker
parent 4561e78dd5
commit 2c64922a14
1 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ void AP_BoardConfig::throw_error(const char *err_type, const char *fmt, va_list
vprintf(printfmt, arg_copy);
va_end(arg_copy);
}
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !defined(HAL_BUILD_AP_PERIPH)
#if HAL_GCS_ENABLED
hal.util->snprintf(printfmt, sizeof(printfmt), "%s: %s", err_type, fmt);
{
va_list arg_copy;
@ -426,7 +426,7 @@ void AP_BoardConfig::throw_error(const char *err_type, const char *fmt, va_list
}
#endif
}
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !defined(HAL_BUILD_AP_PERIPH)
#if HAL_GCS_ENABLED
gcs().update_receive();
gcs().update_send();
#endif