mirror of https://github.com/ArduPilot/ardupilot
AP_BoardConfig: use HAL_GCS_ENABLED in place of periph/example check
... periphs can have GCS too...
This commit is contained in:
parent
4561e78dd5
commit
2c64922a14
|
@ -416,7 +416,7 @@ void AP_BoardConfig::throw_error(const char *err_type, const char *fmt, va_list
|
||||||
vprintf(printfmt, arg_copy);
|
vprintf(printfmt, arg_copy);
|
||||||
va_end(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);
|
hal.util->snprintf(printfmt, sizeof(printfmt), "%s: %s", err_type, fmt);
|
||||||
{
|
{
|
||||||
va_list arg_copy;
|
va_list arg_copy;
|
||||||
|
@ -426,7 +426,7 @@ void AP_BoardConfig::throw_error(const char *err_type, const char *fmt, va_list
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !defined(HAL_BUILD_AP_PERIPH)
|
#if HAL_GCS_ENABLED
|
||||||
gcs().update_receive();
|
gcs().update_receive();
|
||||||
gcs().update_send();
|
gcs().update_send();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue