AP_Baro: move from HAL_NO_GCS to HAL_GCS_ENABLED

This commit is contained in:
Peter Barker 2021-08-18 21:42:16 +10:00 committed by Peter Barker
parent 22e9ad4818
commit cf9a774bc2
1 changed files with 3 additions and 3 deletions

View File

@ -223,10 +223,10 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = {
// singleton instance
AP_Baro *AP_Baro::_singleton;
#ifdef HAL_NO_GCS
#define BARO_SEND_TEXT(severity, format, args...)
#else
#if HAL_GCS_ENABLED
#define BARO_SEND_TEXT(severity, format, args...) gcs().send_text(severity, format, ##args)
#else
#define BARO_SEND_TEXT(severity, format, args...)
#endif
/*